com.skype.api
Enum Contact.CAPABILITY

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

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

This enumerator is used by both Contact and Account objects. Thus the items here can have slightly different meaning, depending on which context you will examine their values. In case of Contact, the values apply to a user - across all the instances that user has logged in with Skype. In case of Account, the capability is that of a local, currently logged in instance of Skype client.

The values that CAPABILITY items can have are also dependant on class context. In context of Contact, a capability can be CAPABILITY_MIXED. Which in case of CAPABILITY_VIDEO, for example, would mean that the remote use has logged in with different clients, some of which support video calls and some of which don't. In context of Account - there are no mixed result. Currently logged in Skype instance either supports video or it doesn't.


Enum Constant Summary
CAPABILITY_CALL_FORWARD
          Indicates that Account/Contact supports call forwarding.
CAPABILITY_CAN_BE_SENT_VM
          For contacts, this is a combination of CAPABILITY_VOICEMAIL for local account (local Skype client supports sending voicemails) and CAPABILITY_VOICEMAIL of the Contact - if the contact supports sending voicemails then hopefully they can also receive them.
CAPABILITY_COMMERCIAL_CONTACT
           
CAPABILITY_LARGE_CONFERENCE
          This is a legacy item, from the old times when conference calls with more than 5 people were limited to SkypePro accounts.
CAPABILITY_MOBILE_DEVICE
          Indicates that the instance of Skype client Account/Contact is or in Contact's case has at least occasionally been flagged as a mobile device.
CAPABILITY_PSTN_TRANSFER
          Indicates that Account/Contact supports call transfers to PSTN numbers.
CAPABILITY_PUBLIC_CONTACT
           
CAPABILITY_SERVICE_PROVIDER
          Indicates that the contact/account is flagged as SkypePrime service provider.
CAPABILITY_SKYPEIN
          Indicates that the contact/account has SkypeIn and is thus capable of answering PSTN calls.
CAPABILITY_SKYPEOUT
          Indicates that the contact/account has SkypeOut and is thus capable of making PSTN calls.
CAPABILITY_TEXT
          In context of Contact, this indicates that the user is noticed running at least one Skype implementation that supports text messaging.
CAPABILITY_TEXT_EVER
          Indicates that the user has had his chat capability removed by Skype.
CAPABILITY_VIDEO
          Indicates that Account/Contact supports call video calls.
CAPABILITY_VOICE_EVER
          Indicates that the user (Account or Contact) has had his voice call capability removed by Skype.
CAPABILITY_VOICEMAIL
          For Account object, this is the same as CAPABILITY_CAN_BE_SENT_VM - it indicates that the currently logged in Skype instance supports voicemails.
 
Method Summary
static Contact.CAPABILITY fromString(java.lang.String s)
           
static Contact.CAPABILITY get(int code)
           
 int getId()
           
static Contact.CAPABILITY valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Contact.CAPABILITY[] 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

CAPABILITY_VOICEMAIL

public static final Contact.CAPABILITY CAPABILITY_VOICEMAIL
For Account object, this is the same as CAPABILITY_CAN_BE_SENT_VM - it indicates that the currently logged in Skype instance supports voicemails. For Contact objects, it means that their remote system supports sending voicemails - there is no technical method for Skype to detect whether they are capable of receiving voicemails, so the assumption is that they can.


CAPABILITY_SKYPEOUT

public static final Contact.CAPABILITY CAPABILITY_SKYPEOUT
Indicates that the contact/account has SkypeOut and is thus capable of making PSTN calls.


CAPABILITY_SKYPEIN

public static final Contact.CAPABILITY CAPABILITY_SKYPEIN
Indicates that the contact/account has SkypeIn and is thus capable of answering PSTN calls.


CAPABILITY_CAN_BE_SENT_VM

public static final Contact.CAPABILITY CAPABILITY_CAN_BE_SENT_VM
For contacts, this is a combination of CAPABILITY_VOICEMAIL for local account (local Skype client supports sending voicemails) and CAPABILITY_VOICEMAIL of the Contact - if the contact supports sending voicemails then hopefully they can also receive them.


CAPABILITY_CALL_FORWARD

public static final Contact.CAPABILITY CAPABILITY_CALL_FORWARD
Indicates that Account/Contact supports call forwarding.


CAPABILITY_VIDEO

public static final Contact.CAPABILITY CAPABILITY_VIDEO
Indicates that Account/Contact supports call video calls.


CAPABILITY_TEXT

public static final Contact.CAPABILITY CAPABILITY_TEXT
In context of Contact, this indicates that the user is noticed running at least one Skype implementation that supports text messaging. Basically, it applies to a user. When applied to Account, the meaning is slightly different. In that case it indicates that currently running Skype implementation supports chat messaging. So, for Account objects, this is a node (rather than user) capability.


CAPABILITY_SERVICE_PROVIDER

public static final Contact.CAPABILITY CAPABILITY_SERVICE_PROVIDER
Indicates that the contact/account is flagged as SkypePrime service provider. This is linked to Account class SERVICE_PROVIDER_INFO property.


CAPABILITY_LARGE_CONFERENCE

public static final Contact.CAPABILITY CAPABILITY_LARGE_CONFERENCE
This is a legacy item, from the old times when conference calls with more than 5 people were limited to SkypePro accounts. In other words, this item is no longer relevant and will likely be removed at some point in future.


CAPABILITY_COMMERCIAL_CONTACT

public static final Contact.CAPABILITY CAPABILITY_COMMERCIAL_CONTACT

CAPABILITY_PSTN_TRANSFER

public static final Contact.CAPABILITY CAPABILITY_PSTN_TRANSFER
Indicates that Account/Contact supports call transfers to PSTN numbers.


CAPABILITY_TEXT_EVER

public static final Contact.CAPABILITY CAPABILITY_TEXT_EVER
Indicates that the user has had his chat capability removed by Skype. Basically, this means that the user is reported as spammer too many times. This applies for both Contact and Account objects - which means your client can check locally, if the currently logged in user has been marked as a spammer.


CAPABILITY_VOICE_EVER

public static final Contact.CAPABILITY CAPABILITY_VOICE_EVER
Indicates that the user (Account or Contact) has had his voice call capability removed by Skype.


CAPABILITY_MOBILE_DEVICE

public static final Contact.CAPABILITY CAPABILITY_MOBILE_DEVICE
Indicates that the instance of Skype client Account/Contact is or in Contact's case has at least occasionally been flagged as a mobile device.


CAPABILITY_PUBLIC_CONTACT

public static final Contact.CAPABILITY CAPABILITY_PUBLIC_CONTACT
Method Detail

values

public static Contact.CAPABILITY[] 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.CAPABILITY c : Contact.CAPABILITY.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.CAPABILITY 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.CAPABILITY get(int code)

fromString

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


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