com.aetrion.flickr.contacts
Class OnlineStatus

java.lang.Object
  extended by com.aetrion.flickr.contacts.OnlineStatus
All Implemented Interfaces:
java.io.Serializable

public class OnlineStatus
extends java.lang.Object
implements java.io.Serializable

Class representing the various types of online statuses.

Author:
Anthony Eden
See Also:
Serialized Form

Field Summary
static OnlineStatus AWAY
           
static int AWAY_TYPE
           
static OnlineStatus OFFLINE
           
static int OFFLINE_TYPE
           
static OnlineStatus ONLINE
           
static int ONLINE_TYPE
           
static OnlineStatus UNKNOWN
           
static int UNKNOWN_TYPE
           
 
Method Summary
static OnlineStatus fromType(int type)
          Get an OnlineStatus object for a given int value.
static OnlineStatus fromType(java.lang.String type)
          Get the OnlineStatus value for a given int represented as a String
 int getType()
          Get the int value for the online status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFFLINE_TYPE

public static final int OFFLINE_TYPE
See Also:
Constant Field Values

AWAY_TYPE

public static final int AWAY_TYPE
See Also:
Constant Field Values

ONLINE_TYPE

public static final int ONLINE_TYPE
See Also:
Constant Field Values

UNKNOWN_TYPE

public static final int UNKNOWN_TYPE
See Also:
Constant Field Values

OFFLINE

public static final OnlineStatus OFFLINE

AWAY

public static final OnlineStatus AWAY

ONLINE

public static final OnlineStatus ONLINE

UNKNOWN

public static final OnlineStatus UNKNOWN
Method Detail

getType

public int getType()
Get the int value for the online status. This method is useful in switch statements.

Returns:
The int value for the online status

fromType

public static OnlineStatus fromType(int type)
Get an OnlineStatus object for a given int value.

Parameters:
type - The int value
Returns:
The OnlineStatus object

fromType

public static OnlineStatus fromType(java.lang.String type)
Get the OnlineStatus value for a given int represented as a String

Parameters:
type - The int represented as a String
Returns:
The OnlineStatus object


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.