com.skype.api
Enum Contact.Type

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

public static enum Contact.Type
extends java.lang.Enum<Contact.Type>
implements EnumConverting

Same as with CAPABILITY, enumerator is used by both Contact and Account objects.


Enum Constant Summary
EMERGENCY_PSTN
          Emergency number (i.e.
EXTERNAL
          This type is currently used by Windows desktop clients for contacts imported from Outlook.
FREE_PSTN
           
PSTN
          Normal PSTN contact.
SKYPE
          Normal Skype contact.
UNDISCLOSED_PSTN
          Undisclosed PSTN number.
UNRECOGNIZED
          Contact/account has no pre-identified type.
 
Field Summary
static int EMERGENCY_PSTN_VALUE
           
static int EXTERNAL_VALUE
           
static int FREE_PSTN_VALUE
           
static int PSTN_VALUE
           
static int SKYPE_VALUE
           
static int UNDISCLOSED_PSTN_VALUE
           
static int UNRECOGNIZED_VALUE
           
 
Method Summary
 EnumConverting convert(int from)
           
static Contact.Type get(int from)
           
 EnumConverting[] getArray(int size)
           
 EnumConverting getDefault()
           
 int getId()
           
static Contact.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Contact.Type[] 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

UNRECOGNIZED

public static final Contact.Type UNRECOGNIZED
Contact/account has no pre-identified type. This type is reported by default for SkypeKit clients.


SKYPE

public static final Contact.Type SKYPE
Normal Skype contact.


PSTN

public static final Contact.Type PSTN
Normal PSTN contact.


EMERGENCY_PSTN

public static final Contact.Type EMERGENCY_PSTN
Emergency number (i.e. 911).


FREE_PSTN

public static final Contact.Type FREE_PSTN

UNDISCLOSED_PSTN

public static final Contact.Type UNDISCLOSED_PSTN
Undisclosed PSTN number.


EXTERNAL

public static final Contact.Type EXTERNAL
This type is currently used by Windows desktop clients for contacts imported from Outlook.

Field Detail

UNRECOGNIZED_VALUE

public static final int UNRECOGNIZED_VALUE
See Also:
Constant Field Values

SKYPE_VALUE

public static final int SKYPE_VALUE
See Also:
Constant Field Values

PSTN_VALUE

public static final int PSTN_VALUE
See Also:
Constant Field Values

EMERGENCY_PSTN_VALUE

public static final int EMERGENCY_PSTN_VALUE
See Also:
Constant Field Values

FREE_PSTN_VALUE

public static final int FREE_PSTN_VALUE
See Also:
Constant Field Values

UNDISCLOSED_PSTN_VALUE

public static final int UNDISCLOSED_PSTN_VALUE
See Also:
Constant Field Values

EXTERNAL_VALUE

public static final int EXTERNAL_VALUE
See Also:
Constant Field Values
Method Detail

values

public static Contact.Type[] 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.Type c : Contact.Type.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.Type 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()
Specified by:
getId in interface EnumConverting

getDefault

public EnumConverting getDefault()
Specified by:
getDefault in interface EnumConverting

convert

public EnumConverting convert(int from)
Specified by:
convert in interface EnumConverting

getArray

public EnumConverting[] getArray(int size)
Specified by:
getArray in interface EnumConverting

get

public static Contact.Type get(int from)


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