com.skype.api
Enum Contact.AuthLevel

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

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

Describes the recognized relational states between a local account and a remote contact.


Enum Constant Summary
AUTHORIZED_BY_ME
          Contact has been authorized by the local account.
BLOCKED_BY_ME
          Contact has been blocked by the local account.
NONE
          Authorization request is either ignored or pending.
 
Field Summary
static int AUTHORIZED_BY_ME_VALUE
           
static int BLOCKED_BY_ME_VALUE
           
static int NONE_VALUE
           
 
Method Summary
 EnumConverting convert(int from)
           
static Contact.AuthLevel get(int from)
           
 EnumConverting[] getArray(int size)
           
 EnumConverting getDefault()
           
 int getId()
           
static Contact.AuthLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Contact.AuthLevel[] 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

NONE

public static final Contact.AuthLevel NONE
Authorization request is either ignored or pending. In this state several functionalities may be blocked, depending on settings. For example, accounts may only allow seeing online presence to be viewable or only receive calls from authorized contacts.


AUTHORIZED_BY_ME

public static final Contact.AuthLevel AUTHORIZED_BY_ME
Contact has been authorized by the local account.


BLOCKED_BY_ME

public static final Contact.AuthLevel BLOCKED_BY_ME
Contact has been blocked by the local account. This prevents incoming calls, chat messages, additional authorization requests etc.

Field Detail

NONE_VALUE

public static final int NONE_VALUE
See Also:
Constant Field Values

AUTHORIZED_BY_ME_VALUE

public static final int AUTHORIZED_BY_ME_VALUE
See Also:
Constant Field Values

BLOCKED_BY_ME_VALUE

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

values

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


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