iotgateway/Plugins/PluginInterface/ThingsBoard/TBRpcRequest.cs
2022-04-13 17:01:24 +08:00

27 lines
750 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PluginInterface.ThingsBoard
{
public class TBRpcRequest
{
[JsonProperty(PropertyName = "device")]
public string DeviceName { get; set; }
[JsonProperty(PropertyName = "data")]
public TBRpcData RequestData { get; set; }
}
public class TBRpcData
{
[JsonProperty(PropertyName = "id")]
public string RequestId { get; set; }
[JsonProperty(PropertyName = "method")]
public string Method { get; set; }
[JsonProperty(PropertyName = "params")]
public Dictionary<string, object> Params { get; set; }
}
}