com.skype.api
Enum Contact.AVAILABILITY

java.lang.Object
  extended by java.lang.Enum<Contact.AVAILABILITY>
      extended by com.skype.api.Contact.AVAILABILITY
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Contact.AVAILABILITY>
Enclosing class:
Contact

public static enum Contact.AVAILABILITY
extends java.lang.Enum<Contact.AVAILABILITY>

Describes the superset list of possible Account and Contact online statuses. In case of Account they apply to local user, in case of Contact they apply to remote contacts.


Enum Constant Summary
AWAY
          Contact / Account is online but away from keyboard.
AWAY_FROM_MOBILE
          _FROM_MOBILE only possible for remote user
BLOCKED
          Remote contact has been blocked by local account.
BLOCKED_SKYPEOUT
          Remote SkypeOut contact has been blocked by local account.
CONNECTING
          only possible for local user/account
DO_NOT_DISTURB
          Contact / Account is online but does not wish to be disturbed.
DO_NOT_DISTURB_FROM_MOBILE
           
INVISIBLE
          Account status is set to INVISIBLE.
NOT_AVAILABLE
          This online status is marked as deprecated.
NOT_AVAILABLE_FROM_MOBILE
           
OFFLINE
          Contact appears to be offline.
OFFLINE_BUT_CF_ABLE
          Contact appears to be offline but has enabled call forwarding, so calls may actually get through to him.
OFFLINE_BUT_VM_ABLE
          Contact appears to be offline but has voicemail enabled.
ONLINE
          Contact / Account is online
ONLINE_FROM_MOBILE
           
PENDINGAUTH
          Seeing Contact online status is blocked because authorization between contact and local account has not taken place.
SKYPE_ME
          This online status is marked as deprecated.
SKYPE_ME_FROM_MOBILE
           
SKYPEOUT
          Contact does not have an online status because he is a PSTN contact.
UNKNOWN
          Contact online status cannot be determined.
 
Method Summary
static Contact.AVAILABILITY fromString(java.lang.String s)
           
static Contact.AVAILABILITY get(int code)
           
 int getId()
           
static Contact.AVAILABILITY valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Contact.AVAILABILITY[] 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

UNKNOWN

public static final Contact.AVAILABILITY UNKNOWN
Contact online status cannot be determined. This availability state should not normally reach the SkypeKit UI level.


PENDINGAUTH

public static final Contact.AVAILABILITY PENDINGAUTH
Seeing Contact online status is blocked because authorization between contact and local account has not taken place.


BLOCKED

public static final Contact.AVAILABILITY BLOCKED
Remote contact has been blocked by local account. This applies to online accounts.


BLOCKED_SKYPEOUT

public static final Contact.AVAILABILITY BLOCKED_SKYPEOUT
Remote SkypeOut contact has been blocked by local account.


SKYPEOUT

public static final Contact.AVAILABILITY SKYPEOUT
Contact does not have an online status because he is a PSTN contact.


OFFLINE

public static final Contact.AVAILABILITY OFFLINE
Contact appears to be offline.


OFFLINE_BUT_VM_ABLE

public static final Contact.AVAILABILITY OFFLINE_BUT_VM_ABLE
Contact appears to be offline but has voicemail enabled.


OFFLINE_BUT_CF_ABLE

public static final Contact.AVAILABILITY OFFLINE_BUT_CF_ABLE
Contact appears to be offline but has enabled call forwarding, so calls may actually get through to him.


ONLINE

public static final Contact.AVAILABILITY ONLINE
Contact / Account is online


AWAY

public static final Contact.AVAILABILITY AWAY
Contact / Account is online but away from keyboard. This can be either turned on manually or by automatic timer. In Windows desktop client, the timer can be configured with minute precision.


NOT_AVAILABLE

public static final Contact.AVAILABILITY NOT_AVAILABLE
This online status is marked as deprecated. If a remote contact indicates its status as NOT_AVAILABLE, the UI should handle this as equivalent of AWAY status.


DO_NOT_DISTURB

public static final Contact.AVAILABILITY DO_NOT_DISTURB
Contact / Account is online but does not wish to be disturbed. This status supersedes AWAY status when the account is DO_NOT_DISTURB the AWAY timer should not modify the status.


SKYPE_ME

public static final Contact.AVAILABILITY SKYPE_ME
This online status is marked as deprecated. If a remote contact indicates its status as SKYPE_ME, the UI should handle this as equivalent of ONLINE status.


INVISIBLE

public static final Contact.AVAILABILITY INVISIBLE
Account status is set to INVISIBLE. This status in not applicable to remote Contacts. When the remote contact has set his availability to INVISIBLE, he will appear as OFFLINE to others.


CONNECTING

public static final Contact.AVAILABILITY CONNECTING
only possible for local user/account


ONLINE_FROM_MOBILE

public static final Contact.AVAILABILITY ONLINE_FROM_MOBILE

AWAY_FROM_MOBILE

public static final Contact.AVAILABILITY AWAY_FROM_MOBILE
_FROM_MOBILE only possible for remote user


NOT_AVAILABLE_FROM_MOBILE

public static final Contact.AVAILABILITY NOT_AVAILABLE_FROM_MOBILE

DO_NOT_DISTURB_FROM_MOBILE

public static final Contact.AVAILABILITY DO_NOT_DISTURB_FROM_MOBILE

SKYPE_ME_FROM_MOBILE

public static final Contact.AVAILABILITY SKYPE_ME_FROM_MOBILE
Method Detail

values

public static Contact.AVAILABILITY[] 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 (Contact.AVAILABILITY c : Contact.AVAILABILITY.values())
    System.out.println(c);

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

valueOf

public static Contact.AVAILABILITY valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getId

public int getId()

get

public static Contact.AVAILABILITY get(int code)

fromString

public static Contact.AVAILABILITY fromString(java.lang.String s)


Copyright © 2010, 2011 Skype Technologies. All Rights Reserved.