summaryrefslogtreecommitdiffstats
blob: 332670a4ee0991756166e56f9d908e1cba0387e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* Copyright (c) 2014, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2014, Remko Tronçon.
* All rights reserved.
*/

package com.isode.stroke.elements;

import com.isode.stroke.jid.JID;
import java.util.Date;
import com.isode.stroke.elements.PubSubEventPayload;

public class PubSubEventSubscription extends PubSubEventPayload {
public enum SubscriptionType
{
	None,
	Pending,
	Subscribed,
	Unconfigured
}

public PubSubEventSubscription() {
}

public SubscriptionType getSubscription() {
	return subscription_;
}

public void setSubscription(SubscriptionType subscription) {
	subscription_ = subscription;
}

public String getSubscriptionID() {
	return subscriptionID_;
}

public void setSubscriptionID(String subscriptionID) {
	subscriptionID_ = subscriptionID;
}

public String getNode() {
	return node_;
}

public void setNode(String node) {
	node_ = node;
}

public JID getJID() {
	return jid_;
}

public void setJID(JID jid) {
	jid_ = jid;
}

public Date getExpiry() {
	return expiry_;
}

public void setExpiry(Date expiry) {
	expiry_ = expiry;
}

private SubscriptionType subscription_;
private String subscriptionID_;
private String node_ = "";
private JID jid_;
private Date expiry_;

}