iotgateway/Plugins/PluginInterface/SendModel.cs

27 lines
689 B
C#
Raw Normal View History

2021-12-12 06:55:48 +00:00
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")]
2022-08-10 16:07:02 +00:00
public Dictionary<string, object>? Values { get; set; } = new();
2021-12-12 06:55:48 +00:00
}
public enum DeviceStatusTypeEnum
{
Good,
PartGood,
Bad,
UnKnow
}
}