using MQTTnet.Protocol; namespace MQTTnet.Packets { public sealed class MqttConnAckPacket : MqttBasePacket { public bool IsSessionPresent { get; set; } public MqttConnectReturnCode ConnectReturnCode { get; set; } public override string ToString() { return "ConnAck: [ConnectReturnCode=" + ConnectReturnCode + "] [IsSessionPresent=" + IsSessionPresent + "]"; } } }