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.mqttunsubscribemsg; 12 13 import collie.codec.mqtt.mqttmsg; 14 import collie.codec.mqtt.mqttfixedheader; 15 import collie.codec.mqtt.mqttmsgidvariableheader; 16 import collie.codec.mqtt.mqttunsubscribepayload; 17 18 class MqttUnsubscribeMsg : MqttMsg 19 { 20 public this( 21 MqttFixedHeader mqttFixedHeader, 22 MqttMsgIdVariableHeader variableHeader, 23 MqttUnsubscribePayload payload) { 24 super(mqttFixedHeader, variableHeader, payload); 25 } 26 27 override 28 MqttMsgIdVariableHeader variableHeader() { 29 return cast(MqttMsgIdVariableHeader) super.variableHeader(); 30 } 31 32 override 33 MqttUnsubscribePayload payload() { 34 return cast(MqttUnsubscribePayload) super.payload(); 35 } 36 } 37