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