iotgateway/Plugins/PluginInterface/ThingsCloud/TCRpcRequest.cs

27 lines
753 B
C#
Raw Normal View History

2022-04-20 06:05:44 +00:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PluginInterface.ThingsBoard
{
public class TCRpcRequest
{
[JsonProperty(PropertyName = "device")]
public string DeviceName { get; set; }
[JsonProperty(PropertyName = "command")]
public TBRpcData RequestData { get; set; }
}
public class TCRpcData
{
[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; }
}
}