mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-12-02 03:38:01 +08:00
27 lines
688 B
C#
27 lines
688 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PluginInterface
|
|
{
|
|
public class PayLoad
|
|
{
|
|
[JsonProperty(PropertyName = "ts")]
|
|
public long TS { get; set; } = DateTime.Now.Ticks;
|
|
[JsonProperty(PropertyName = "devicestatus")]
|
|
public DeviceStatusTypeEnum DeviceStatus { get; set; } = DeviceStatusTypeEnum.Good;
|
|
[JsonProperty(PropertyName = "values")]
|
|
public Dictionary<string, object> Values { get; set; } = new();
|
|
}
|
|
public enum DeviceStatusTypeEnum
|
|
{
|
|
Good,
|
|
PartGood,
|
|
Bad,
|
|
UnKnow
|
|
}
|
|
}
|