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

18 行
550 B

  1. using System.Collections.Generic;
  2. namespace MQTTnet.Packets
  3. {
  4. public sealed class MqttUnsubscribePacket : MqttBasePacket, IMqttPacketWithIdentifier
  5. {
  6. public ushort? PacketIdentifier { get; set; }
  7. public IList<string> TopicFilters { get; set; } = new List<string>();
  8. public override string ToString()
  9. {
  10. var topicFiltersText = string.Join(",", TopicFilters);
  11. return "Subscribe: [PacketIdentifier=" + PacketIdentifier + "] [TopicFilters=" + topicFiltersText + "]";
  12. }
  13. }
  14. }