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 Params { get; set; } } }