com.skype.api
Enum Account.LOGOUTREASON

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

public static enum Account.LOGOUTREASON
extends java.lang.Enum<Account.LOGOUTREASON>

Recognized values for the Account.P_LOGOUTREASON. Note that this property should only be examined when Account.P_STATUS is LOGGED_OUT or LOGGED_OUT_AND_PWD_SAVED. That is, you should not monitor changes to this property in Account.OnChange callback, other than after already having checked that P_STATUS property has appropriate value. The reason for this is that the LOGOUTREASON does not get reset before the next login attempt. For example: if a user tried to log in with a wrong password, the LOGOUTREASON gets set to INCORRECT_PASSWORD. Now, if the user tries to log in again, and yet again submits an incorrect password, the value of the LOGOUTREASON does not change anymore, because it already is set to INCORRECT_PASSWORD. Consequently, Account.OnChange will not fire in this case.


Enum Constant Summary
APP_ID_FAILURE
          platform sdk
DB_CORRUPT
          async errors (can happen anytime while logged in)
DB_DISK_FULL
          async errors (can happen anytime while logged in)
DB_FAILURE
          deprecated (superceded by more detailed DB_* errors)
DB_IN_USE
          sync errors at login/registration
DB_IO_ERROR
          async errors (can happen anytime while logged in)
HTTPS_PROXY_AUTH_FAILED
          sync errors at login/registration
INCORRECT_PASSWORD
          sync errors at login
INVALID_APP_ID
          platform sdk
INVALID_EMAIL
          sync errors at registration
INVALID_SKYPENAME
          sync errors at registration
LOGOUT_CALLED
          manual logout (or unknown reason from previous session)
NO_SUCH_IDENTITY
          sync errors at login
P2P_CONNECT_FAILED
          sync errors at login/registration
PASSWORD_HAS_CHANGED
          async errors (can happen anytime while logged in)
PERIODIC_UIC_UPDATE_FAILED
          async errors (can happen anytime while logged in)
REJECTED_AS_UNDERAGE
          sync errors at registration
SERVER_CONNECT_FAILED
          sync errors at login/registration
SERVER_OVERLOADED
          sync errors at login/registration
SKYPENAME_TAKEN
          sync errors at registration
SOCKS_PROXY_AUTH_FAILED
          sync errors at login/registration
TOO_MANY_LOGIN_ATTEMPTS
          sync errors at login
UNACCEPTABLE_PASSWORD
          sync errors at registration
UNSUPPORTED_VERSION
          forced upgrade/discontinuation
 
Method Summary
static Account.LOGOUTREASON fromString(java.lang.String s)
           
static Account.LOGOUTREASON get(int code)
           
 int getId()
           
static Account.LOGOUTREASON valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Account.LOGOUTREASON[] 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

LOGOUT_CALLED

public static final Account.LOGOUTREASON LOGOUT_CALLED
manual logout (or unknown reason from previous session)


HTTPS_PROXY_AUTH_FAILED

public static final Account.LOGOUTREASON HTTPS_PROXY_AUTH_FAILED
sync errors at login/registration


SOCKS_PROXY_AUTH_FAILED

public static final Account.LOGOUTREASON SOCKS_PROXY_AUTH_FAILED
sync errors at login/registration


P2P_CONNECT_FAILED

public static final Account.LOGOUTREASON P2P_CONNECT_FAILED
sync errors at login/registration


SERVER_CONNECT_FAILED

public static final Account.LOGOUTREASON SERVER_CONNECT_FAILED
sync errors at login/registration


SERVER_OVERLOADED

public static final Account.LOGOUTREASON SERVER_OVERLOADED
sync errors at login/registration


DB_IN_USE

public static final Account.LOGOUTREASON DB_IN_USE
sync errors at login/registration


INVALID_SKYPENAME

public static final Account.LOGOUTREASON INVALID_SKYPENAME
sync errors at registration


INVALID_EMAIL

public static final Account.LOGOUTREASON INVALID_EMAIL
sync errors at registration


UNACCEPTABLE_PASSWORD

public static final Account.LOGOUTREASON UNACCEPTABLE_PASSWORD
sync errors at registration


SKYPENAME_TAKEN

public static final Account.LOGOUTREASON SKYPENAME_TAKEN
sync errors at registration


REJECTED_AS_UNDERAGE

public static final Account.LOGOUTREASON REJECTED_AS_UNDERAGE
sync errors at registration


NO_SUCH_IDENTITY

public static final Account.LOGOUTREASON NO_SUCH_IDENTITY
sync errors at login


INCORRECT_PASSWORD

public static final Account.LOGOUTREASON INCORRECT_PASSWORD
sync errors at login


TOO_MANY_LOGIN_ATTEMPTS

public static final Account.LOGOUTREASON TOO_MANY_LOGIN_ATTEMPTS
sync errors at login


PASSWORD_HAS_CHANGED

public static final Account.LOGOUTREASON PASSWORD_HAS_CHANGED
async errors (can happen anytime while logged in)


PERIODIC_UIC_UPDATE_FAILED

public static final Account.LOGOUTREASON PERIODIC_UIC_UPDATE_FAILED
async errors (can happen anytime while logged in)


DB_DISK_FULL

public static final Account.LOGOUTREASON DB_DISK_FULL
async errors (can happen anytime while logged in)


DB_IO_ERROR

public static final Account.LOGOUTREASON DB_IO_ERROR
async errors (can happen anytime while logged in)


DB_CORRUPT

public static final Account.LOGOUTREASON DB_CORRUPT
async errors (can happen anytime while logged in)


DB_FAILURE

public static final Account.LOGOUTREASON DB_FAILURE
deprecated (superceded by more detailed DB_* errors)


INVALID_APP_ID

public static final Account.LOGOUTREASON INVALID_APP_ID
platform sdk


APP_ID_FAILURE

public static final Account.LOGOUTREASON APP_ID_FAILURE
platform sdk


UNSUPPORTED_VERSION

public static final Account.LOGOUTREASON UNSUPPORTED_VERSION
forced upgrade/discontinuation

Method Detail

values

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

fromString

public static Account.LOGOUTREASON fromString(java.lang.String s)


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