public enum SubscriptionType extends java.lang.Enum<SubscriptionType>
PresenceType
even though they are both communicated via presence
stanzas.Enum Constant and Description |
---|
SUBSCRIBE
Signals that a contact has requested a subscription.
|
SUBSCRIBED
Signals that a contact has accepted a request for subscription.
|
UNSUBSCRIBE
Signals that a contact is requesting an end to a subscription.
|
UNSUBSCRIBED
Signals that a contact has ended a subscription.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionType SUBSCRIBE
public static final SubscriptionType SUBSCRIBED
public static final SubscriptionType UNSUBSCRIBE
public static final SubscriptionType UNSUBSCRIBED
public static SubscriptionType[] values()
for (SubscriptionType c : SubscriptionType.values()) System.out.println(c);
public static SubscriptionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null