1 /* 2 * Collie - An asynchronous event-driven network framework using Dlang development 3 * 4 * Copyright (C) 2015-2017 Shanghai Putao Technology Co., Ltd 5 * 6 * Developer: putao's Dlang team 7 * 8 * Licensed under the Apache-2.0 License. 9 * 10 */ 11 module collie.codec.mqtt.mqttconnackvariableheader; 12 13 import collie.codec.mqtt.mqttconnectreturncode; 14 15 class MqttConnAckVariableHeader 16 { 17 public: 18 this(MqttConnectReturnCode connectReturnCode, bool sessionPresent) { 19 this._connectReturnCode = connectReturnCode; 20 this._sessionPresent = sessionPresent; 21 } 22 23 MqttConnectReturnCode connectReturnCode() { 24 return _connectReturnCode; 25 } 26 27 bool isSessionPresent() { 28 return _sessionPresent; 29 } 30 31 override 32 string toString() { 33 return ""; 34 } 35 36 private: 37 MqttConnectReturnCode _connectReturnCode; 38 39 bool _sessionPresent; 40 } 41