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.mqtttopicsubscription;
12 
13 import collie.codec.mqtt.mqttqos;
14 
15 class MqttTopicSubscription 
16 {
17 public:
18 	 this(string topicFilter, MqttQoS qualityOfService) {
19 		this._topicFilter = topicFilter;
20 		this._qualityOfService = qualityOfService;
21 	}
22 	
23 	 string topicName() {
24 		return _topicFilter;
25 	}
26 	
27 	 MqttQoS qualityOfService() {
28 		return _qualityOfService;
29 	}
30 	
31 	override
32 	 string toString() {
33 		return "";
34 	}
35 private:
36 	  string _topicFilter;
37 	  MqttQoS _qualityOfService;
38 }
39