iotgateway/Plugins/PluginInterface/ThingsBoard/TBRpcResponse.cs

21 lines
603 B
C#
Raw Normal View History

2022-04-13 09:01:24 +00:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PluginInterface.ThingsBoard
{
//{"device": "Device A", "id": $request_id, "data": {"success": true}}
public class TBRpcResponse
{
[JsonProperty(PropertyName = "device")]
public string DeviceName { get; set; }
[JsonProperty(PropertyName = "id")]
public string RequestId { get; set; }
[JsonProperty(PropertyName = "data")]
public Dictionary<string, object> ResponseData { get; set; }
}
}