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.

MqttApplicationMessage.cs 879 B

pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 7 gadiem
1234567891011121314151617181920212223242526272829
  1. using System;
  2. using MQTTnet.Protocol;
  3. namespace MQTTnet
  4. {
  5. public sealed class MqttApplicationMessage
  6. {
  7. public MqttApplicationMessage()
  8. {
  9. }
  10. [Obsolete("Use object initializer or _MqttApplicationMessageBuilder_ instead.")]
  11. public MqttApplicationMessage(string topic, byte[] payload, MqttQualityOfServiceLevel qualityOfServiceLevel, bool retain)
  12. {
  13. Topic = topic ?? throw new ArgumentNullException(nameof(topic));
  14. Payload = payload ?? throw new ArgumentNullException(nameof(payload));
  15. QualityOfServiceLevel = qualityOfServiceLevel;
  16. Retain = retain;
  17. }
  18. public string Topic { get; set; }
  19. public byte[] Payload { get; set; }
  20. public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
  21. public bool Retain { get; set; }
  22. }
  23. }