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 line
451 B

  1. using System;
  2. using MQTTnet.Packets;
  3. namespace MQTTnet.Adapter
  4. {
  5. public class ReceivedMqttPacket
  6. {
  7. public ReceivedMqttPacket(MqttPacketHeader header, byte[] body)
  8. {
  9. Header = header ?? throw new ArgumentNullException(nameof(header));
  10. Body = body ?? throw new ArgumentNullException(nameof(body));
  11. }
  12. public MqttPacketHeader Header { get; }
  13. public byte[] Body { get; }
  14. }
  15. }