iotgateway/Plugins/PluginInterface/SendModel.cs
2021-12-12 14:55:48 +08:00

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
}
}