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

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

        /// <summary>在响应中</summary>
        public static PubRecPacket InResponseTo(PublishPacket publishPacket)
        {
            return new PubRecPacket
            {
                PacketId = publishPacket.PacketId
            };
        }
    }
}