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