增加编解码异常,增加Mqtt实现,太臃肿了
大石头 authored at 2018-04-23 15:34:06
512.00 B
X

namespace NewLife.Net.MQTT.Packets
{
    /// <summary>发布完成</summary>
    public sealed class PubCompPacket : PacketWithId
    {
        /// <summary>包类型</summary>
        public override PacketType PacketType => PacketType.PUBCOMP;

        /// <summary>包类型</summary>
        public static PubCompPacket InResponseTo(PubRelPacket publishPacket)
        {
            return new PubCompPacket
            {
                PacketId = publishPacket.PacketId
            };
        }
    }
}