Renamed subscribe and unsubscribe topic to topicFilter

This commit is contained in:
selva.andre
2014-08-03 11:17:25 +02:00
parent e40e19cd1e
commit 161421a00c
11 changed files with 23 additions and 24 deletions
@@ -27,19 +27,19 @@ public class SubscribeMessage extends MessageIDMessage {
public static class Couple {
private byte m_qos;
private String m_topic;
private String m_topicFilter;
public Couple(byte qos, String topic) {
m_qos = qos;
m_topic = topic;
m_topicFilter = topic;
}
public byte getQos() {
return m_qos;
}
public String getTopic() {
return m_topic;
public String getTopicFilter() {
return m_topicFilter;
}
}
private List<Couple> m_subscriptions = new ArrayList<Couple>();
@@ -29,11 +29,11 @@ public class UnsubscribeMessage extends MessageIDMessage {
m_messageType = AbstractMessage.UNSUBSCRIBE;
}
public List<String> topics() {
public List<String> topicFilters() {
return m_types;
}
public void addTopic(String type) {
public void addTopicFilter(String type) {
m_types.add(type);
}
}