public static enum SubscriptionState.Subscription extends java.lang.Enum<SubscriptionState.Subscription>
Enum Constant and Description |
---|
BOTH
The user and the contact have subscriptions to each other's presence (also called a "mutual subscription").
|
FROM
The contact has a subscription to the user's presence, but the user does not have a subscription to the contact's presence.
|
NONE
The user does not have a subscription to the contact's presence, and the contact does not have a subscription to the user's presence; this is the default value, so if the subscription attribute is not included then the state is to be understood as "none".
|
REMOVE
At any time, a client can delete an item from his or her roster by sending a roster set and specifying a value of "remove" for the 'subscription' attribute.
|
TO
The user has a subscription to the contact's presence, but the contact does not have a subscription to the user's presence.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionState.Subscription |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionState.Subscription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionState.Subscription BOTH
public static final SubscriptionState.Subscription FROM
public static final SubscriptionState.Subscription TO
public static final SubscriptionState.Subscription NONE
public static final SubscriptionState.Subscription REMOVE
public static SubscriptionState.Subscription[] values()
for (SubscriptionState.Subscription c : SubscriptionState.Subscription.values()) System.out.println(c);
public static SubscriptionState.Subscription 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 nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.