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