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.
 
 
 
 

22 lines
526 B

  1. using MQTTnet.Protocol;
  2. namespace MQTTnet
  3. {
  4. public class TopicFilter
  5. {
  6. public TopicFilter(string topic, MqttQualityOfServiceLevel qualityOfServiceLevel)
  7. {
  8. Topic = topic;
  9. QualityOfServiceLevel = qualityOfServiceLevel;
  10. }
  11. public string Topic { get; set; }
  12. public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
  13. public override string ToString()
  14. {
  15. return Topic + "@" + QualityOfServiceLevel;
  16. }
  17. }
  18. }