38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace HHWMS.Web.Models
|
|
{
|
|
[Table("MqttMessageRecord")]
|
|
public class MqttMessageRecord : BasePoco
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public new int ID { get; set; }
|
|
|
|
[Display(Name = "Mqtt.Topic", Description = "主题")]
|
|
[StringLength(200, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Topic { get; set; }
|
|
|
|
[Display(Name = "Mqtt.Payload", Description = "消息内容")]
|
|
public string Payload { get; set; }
|
|
|
|
[Display(Name = "Mqtt.ReceiveTime", Description = "接收时间")]
|
|
public DateTime ReceiveTime { get; set; }
|
|
|
|
[Display(Name = "Mqtt.IsProcessed", Description = "是否已处理")]
|
|
public bool IsProcessed { get; set; }
|
|
|
|
[Display(Name = "Mqtt.ProcessTime", Description = "处理时间")]
|
|
public DateTime? ProcessTime { get; set; }
|
|
|
|
[Display(Name = "Mqtt.ProcessResult", Description = "处理结果")]
|
|
public string ProcessResult { get; set; }
|
|
|
|
[Display(Name = "Mqtt.ParsedData", Description = "解析后数据")]
|
|
public string ParsedData { get; set; }
|
|
}
|
|
}
|