public static enum Roster.Subscription extends Enum<Roster.Subscription>
Roster.Subscription.none -- the user does not have a
subscription to the contact's presence information, and the contact
does not have a subscription to the user's presence information.
Roster.Subscription.to -- the user has a subscription to
the contact's presence information, but the contact does not have a
subscription to the user's presence information.
Roster.Subscription.from -- the contact has a subscription
to the user's presence information, but the user does not have a
subscription to the contact's presence information.
Roster.Subscription.both -- both the user and the contact
have subscriptions to each other's presence information.
Roster.Subscription.remove -- the user is removing a
contact from his or her roster.
| Enum Constant and Description |
|---|
both
Both the user and the contact have subscriptions to each other's presence
information.
|
from
The contact has a subscription to the user's presence information, but the
user does not have a subscription to the contact's presence information.
|
none
The user does not have a subscription to the contact's presence information,
and the contact does not have a subscription to the user's presence information.
|
remove
The user is removing a contact from his or her roster.
|
to
The user has a subscription to the contact's presence information, but the
contact does not have a subscription to the user's presence information.
|
| Modifier and Type | Method and Description |
|---|---|
static Roster.Subscription |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Roster.Subscription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Roster.Subscription none
public static final Roster.Subscription to
public static final Roster.Subscription from
public static final Roster.Subscription both
public static final Roster.Subscription remove
public static Roster.Subscription[] values()
for (Roster.Subscription c : Roster.Subscription.values()) System.out.println(c);
public static Roster.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 © 2009–2017 Ignite Realtime. All rights reserved.