mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-12-02 03:38:01 +08:00
21 lines
574 B
C#
21 lines
574 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PluginInterface
|
|
{
|
|
public class RpcRequest
|
|
{
|
|
public string DeviceName { get; set; }
|
|
public string Method { get; set; }
|
|
public string RequestId { get; set; }
|
|
public Dictionary<string, object>? Params { get; set; }
|
|
public override string ToString()
|
|
{
|
|
return $"Method:{Method},RequestId:{RequestId},Params:{Newtonsoft.Json.JsonConvert.SerializeObject(Params)}";
|
|
}
|
|
}
|
|
}
|