MqttHelperHandleObjectMethod 方法 (MqttSession, MqttClientApplicationMessage, Object) |
使用指定的对象来返回网络的API接口,前提是传入的数据为json参数,返回的数据为json数据,详细参照说明
Use the specified object to return the API interface of the network,
provided that the incoming data is json parameters and the returned data is json data,
please refer to the description for details
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<string>> HandleObjectMethod(
MqttSession mqttSession,
MqttClientApplicationMessage message,
Object obj
)
Public Shared Function HandleObjectMethod (
mqttSession As MqttSession,
message As MqttClientApplicationMessage,
obj As Object
) As Task(Of OperateResult(Of String))
public:
static Task<OperateResult<String^>^>^ HandleObjectMethod(
MqttSession^ mqttSession,
MqttClientApplicationMessage^ message,
Object^ obj
)
static member HandleObjectMethod :
mqttSession : MqttSession *
message : MqttClientApplicationMessage *
obj : Object -> Task<OperateResult<string>>
参数
- mqttSession
- 类型:HslCommunication.MQTTMqttSession
当前的对话状态 - message
- 类型:HslCommunication.MQTTMqttClientApplicationMessage
当前传入的消息内容 - obj
- 类型:SystemObject
等待解析的api解析的对象
返回值
类型:
TaskOperateResultString等待返回客户的结果
参见