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.mqttpublishvariableheader; 12 13 class MqttPublishVariableHeader 14 { 15 16 public: 17 this(string topicName, int messageId) { 18 this._topicName = topicName; 19 this._messageId = messageId; 20 } 21 22 string topicName() { 23 return _topicName; 24 } 25 26 int messageId() { 27 return _messageId; 28 } 29 30 override 31 string toString() { 32 return ""; 33 } 34 private: 35 string _topicName; 36 int _messageId; 37 } 38