解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头 authored at 2018-05-15 21:21:05
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
            };
        }
    }
}