com.skype.api
Enum Account.AvatarPolicy

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

public static enum Account.AvatarPolicy
extends java.lang.Enum<Account.AvatarPolicy>
implements EnumConverting

Recognized values for the P_AVATAR_POLICY property that controls whether remote contacts can view local account's avatar image. Note that since this set of values is associated with a server-side property, you must set that property using Account.SetServersideIntPropertyserver-side. Note that setting account's AVATAR_POLICY to BUDDIES_OR_AUTHORIZED_CAN_SEE does not guarantee that remote users will be able to immediately retrieve the avatar picture via corresponding Contact object. Avatar changes propagate between clients only when direct sessions between clients are established. Direct sessions are established during live sessions or whilst online contacts are engaged in chat.


Enum Constant Summary
BUDDIES_OR_AUTHORIZED_CAN_SEE
          Only authorized remote users can see this user's avatar image
EVERYONE_CAN_SEE
          Everyone can see this user's avatar image, once the contact/account avatar property has been synchronized during a direct session.
 
Field Summary
static int BUDDIES_OR_AUTHORIZED_CAN_SEE_VALUE
           
static int EVERYONE_CAN_SEE_VALUE
           
 
Method Summary
 EnumConverting convert(int from)
           
static Account.AvatarPolicy get(int from)
           
 EnumConverting[] getArray(int size)
           
 EnumConverting getDefault()
           
 int getId()
           
static Account.AvatarPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Account.AvatarPolicy[] 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

BUDDIES_OR_AUTHORIZED_CAN_SEE

public static final Account.AvatarPolicy BUDDIES_OR_AUTHORIZED_CAN_SEE
Only authorized remote users can see this user's avatar image


EVERYONE_CAN_SEE

public static final Account.AvatarPolicy EVERYONE_CAN_SEE
Everyone can see this user's avatar image, once the contact/account avatar property has been synchronized during a direct session. The avatar image may also become viewable on some Skype Web-based services.

Field Detail

BUDDIES_OR_AUTHORIZED_CAN_SEE_VALUE

public static final int BUDDIES_OR_AUTHORIZED_CAN_SEE_VALUE
See Also:
Constant Field Values

EVERYONE_CAN_SEE_VALUE

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

values

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

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

valueOf

public static Account.AvatarPolicy 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 Account.AvatarPolicy get(int from)


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