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