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.mqttpublishpayload;
12 
13 class MqttPublishPayload
14 {
15 public:
16 	this(ubyte[] data)
17 	{
18 		// Constructor code
19 		_data = data;
20 	}
21 
22 	ubyte[] publishData()
23 	{
24 		return _data;
25 	}
26 private:
27 	ubyte[] _data;
28 }
29