You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
953B

  1. using GpsCardGatewayPosition.Model.Enum;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GpsCardGatewayPosition.Model.IoT
  8. {
  9. [Serializable]
  10. public class PackageMsgModel
  11. {
  12. public PackageMsgModel(string msgId, string bizId, IotTopicType topic, int type, object topicInfo, object detailData)
  13. {
  14. MessageId = msgId;
  15. BusinessId = bizId;
  16. TopicType = topic;
  17. MsgType = type;
  18. TopicInfo = topicInfo;
  19. DetailData = detailData;
  20. }
  21. public string MessageId { get; set; }
  22. public string BusinessId { get; set; }
  23. public DateTime ReceiveTime { get; } = DateTime.Now;
  24. public IotTopicType TopicType { get; set; }
  25. public int MsgType { get; set; }
  26. public object TopicInfo { get; set; }
  27. public object DetailData { get; set; }
  28. }
  29. }