You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MqttUnsubscribe.cs 550 B

7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
1234567891011121314151617
  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. }