public static enum Contact.Subscription extends Enum<Contact.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 Contact.Subscription |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Contact.Subscription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Contact.Subscription BOTH
public static final Contact.Subscription FROM
public static final Contact.Subscription TO
public static final Contact.Subscription NONE
public static final Contact.Subscription REMOVE
public static Contact.Subscription[] values()
for (Contact.Subscription c : Contact.Subscription.values()) System.out.println(c);
public static Contact.Subscription valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2018 XMPP.rocks. All rights reserved.