MqttApplicationMessage 类 |
命名空间: HslCommunication.MQTT
MqttApplicationMessage 类型公开以下成员。
名称 | 说明 | |
---|---|---|
MqttApplicationMessage | 初始化 MqttApplicationMessage 类的一个新实例 |
名称 | 说明 | |
---|---|---|
Payload |
有效载荷包含将被发布的应用消息。数据的内容和格式是应用特定的。 The payload contains application messages to be published. The content and format of the data is application specific. | |
QualityOfServiceLevel |
这个字段表示应用消息分发的服务质量等级保证。分为,最多一次,最少一次,正好一次,只发不推送。 This field indicates the quality of service level guarantee for application message distribution. Divided into, at most once, at least once, exactly once | |
Retain |
该消息是否在服务器端进行保留,详细的说明参照文档的备注 Whether the message is retained on the server. For details, refer to the remarks of the document. | |
Topic |
主题名(Topic Name)用于识别有效载荷数据应该被发布到哪一个信息通道。 The Topic Name is used to identify which information channel the payload data should be published to. |
名称 | 说明 | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ToString | Returns a string that represents the current object. (重写 ObjectToString.) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |