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

namespace NewLife.Net.MQTT.Packets
{
    /// <summary>取消订阅确认</summary>
    public sealed class UnsubAckPacket : PacketWithId
    {
        /// <summary>包类型</summary>
        public override PacketType PacketType => PacketType.UNSUBACK;

        public static UnsubAckPacket InResponseTo(UnsubscribePacket unsubscribePacket)
        {
            return new UnsubAckPacket
            {
                PacketId = unsubscribePacket.PacketId
            };
        }
    }
}