您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MqttSubscribeResult.cs 445 B

123456789101112131415161718
  1. using MQTTnet.Core.Packets;
  2. using MQTTnet.Core.Protocol;
  3. namespace MQTTnet.Core.Client
  4. {
  5. public class MqttSubscribeResult
  6. {
  7. public MqttSubscribeResult(TopicFilter topicFilter, MqttSubscribeReturnCode returnCode)
  8. {
  9. TopicFilter = topicFilter;
  10. ReturnCode = returnCode;
  11. }
  12. public TopicFilter TopicFilter { get; }
  13. public MqttSubscribeReturnCode ReturnCode { get; }
  14. }
  15. }