mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-11-29 18:28:09 +08:00
27 lines
689 B
C#
27 lines
689 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
|
|
}
|
|
}
|