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.
 
 
 
 

19 rivejä
629 B

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