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.
 
 
 
 

25 regels
712 B

  1. using System;
  2. using MQTTnet.Core.Protocol;
  3. namespace MQTTnet.Core
  4. {
  5. public class MqttApplicationMessage
  6. {
  7. public MqttApplicationMessage(string topic, byte[] payload, MqttQualityOfServiceLevel qualityOfServiceLevel, bool retain)
  8. {
  9. Topic = topic ?? throw new ArgumentNullException(nameof(topic));
  10. Payload = payload ?? throw new ArgumentNullException(nameof(payload));
  11. QualityOfServiceLevel = qualityOfServiceLevel;
  12. Retain = retain;
  13. }
  14. public string Topic { get; }
  15. public byte[] Payload { get; }
  16. public MqttQualityOfServiceLevel QualityOfServiceLevel { get; }
  17. public bool Retain { get; }
  18. }
  19. }