mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
20 lines
490 B
C#
20 lines
490 B
C#
using System;
|
|
using System.IO;
|
|
using MQTTnet.Core.Packets;
|
|
|
|
namespace MQTTnet.Core.Adapter
|
|
{
|
|
public class ReceivedMqttPacket
|
|
{
|
|
public ReceivedMqttPacket(MqttPacketHeader header, MemoryStream body)
|
|
{
|
|
Header = header ?? throw new ArgumentNullException(nameof(header));
|
|
Body = body ?? throw new ArgumentNullException(nameof(body));
|
|
}
|
|
|
|
public MqttPacketHeader Header { get; }
|
|
|
|
public MemoryStream Body { get; }
|
|
}
|
|
}
|