Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

25 rindas
719 B

  1. using System;
  2. using MQTTnet.Core.Protocol;
  3. namespace MQTTnet.Core
  4. {
  5. public sealed 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. }