27 lines
753 B
C#
27 lines
753 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 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; }
|
|
}
|
|
}
|