Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Enum OperationSetExtendedAuthorizations.SubscriptionStatus

java.lang.Object
  extended by java.lang.Enum<OperationSetExtendedAuthorizations.SubscriptionStatus>
      extended by net.java.sip.communicator.service.protocol.OperationSetExtendedAuthorizations.SubscriptionStatus
All Implemented Interfaces:
Serializable, Comparable<OperationSetExtendedAuthorizations.SubscriptionStatus>
Enclosing interface:
OperationSetExtendedAuthorizations

public static enum OperationSetExtendedAuthorizations.SubscriptionStatus
extends Enum<OperationSetExtendedAuthorizations.SubscriptionStatus>

The available subscription of the contact.


Enum Constant Summary
NotSubscribed
          Subscription state when we are not subscribed for the contacts presence statuses.
Subscribed
          Subscription state when we are subscribed for the contact statuses.
SubscriptionPending
          When we have subscribed for contact statuses, but haven't received authorization yet.
 
Method Summary
static OperationSetExtendedAuthorizations.SubscriptionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperationSetExtendedAuthorizations.SubscriptionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NotSubscribed

public static final OperationSetExtendedAuthorizations.SubscriptionStatus NotSubscribed
Subscription state when we are not subscribed for the contacts presence statuses.


Subscribed

public static final OperationSetExtendedAuthorizations.SubscriptionStatus Subscribed
Subscription state when we are subscribed for the contact statuses.


SubscriptionPending

public static final OperationSetExtendedAuthorizations.SubscriptionStatus SubscriptionPending
When we have subscribed for contact statuses, but haven't received authorization yet.

Method Detail

values

public static OperationSetExtendedAuthorizations.SubscriptionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OperationSetExtendedAuthorizations.SubscriptionStatus c : OperationSetExtendedAuthorizations.SubscriptionStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperationSetExtendedAuthorizations.SubscriptionStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.