mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
13 lines
359 B
C#
13 lines
359 B
C#
using System.Threading.Tasks;
|
|
using MQTTnet.Core.Channel;
|
|
using MQTTnet.Core.Packets;
|
|
|
|
namespace MQTTnet.Core.Serializer
|
|
{
|
|
public interface IMqttPacketSerializer
|
|
{
|
|
Task SerializeAsync(MqttBasePacket mqttPacket, IMqttCommunicationChannel destination);
|
|
|
|
Task<MqttBasePacket> DeserializeAsync(IMqttCommunicationChannel source);
|
|
}
|
|
} |