v9.8.2018.0605   由DataReader直接映射实体列表,以支持netstandard的MySql和SQLite,且提升性能
大石头 authored at 2018-06-05 00:45:23
638.00 B
X

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

        /// <summary>服务质量</summary>
        public override QualityOfService QualityOfService => QualityOfService.AtLeastOnce;

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