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 
12 module collie.codec.mqtt.mqttconnectpayload;
13 
14 class MqttConnectPayload
15 {
16 
17 public:	
18 	this(string clientIdentifier,
19 		string willTopic,
20 		string willMessage,
21 		string userName,
22 		string password) {
23 		this._clientIdentifier = clientIdentifier;
24 		this._willTopic = willTopic;
25 		this._willMessage = willMessage;
26 		this._userName = userName;
27 		this._password = password;
28 	}
29 
30 	 string clientIdentifier() {
31 		return _clientIdentifier;
32 	}
33 
34 	 string willTopic() {
35 		return _willTopic;
36 	}
37 	
38 	 string willMessage() {
39 		return _willMessage;
40 	}
41 	
42 	 string userName() {
43 		return _userName;
44 	}
45 	
46 	 string password() {
47 		return _password;
48 	}
49 
50 
51 	override string toString() {
52 		return "";
53 	}
54 private:
55 	string _clientIdentifier;
56 	string _willTopic;
57 	string _willMessage;
58 	string _userName;
59 	string _password;
60 }
61