com.vodafone360.people.datatypes
Class PresenceList
java.lang.Object
com.vodafone360.people.datatypes.BaseDataType
com.vodafone360.people.datatypes.PresenceList
public class PresenceList
- extends BaseDataType
BaseDataType encapsulating presence list. This is a list of the online
statuses for a list of contacts specified by user id. Each contact may have
statuses for a number of online communities specified (i.e. Facebook, Google,
MSN etc.). TODO: it doesn't have to be the BaseDataType
Field Summary |
private java.lang.String |
mType
|
private long |
mUserId
|
static java.lang.String |
NAME
|
private java.util.List<User> |
users
|
Method Summary |
void |
createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create PresenceList from Hashtable generated by Hessian-decoder |
java.util.List<User> |
getUsers()
The presence list of not offline users. |
java.lang.String |
name()
Return name of the current Data-type. |
private void |
setValue(PresenceList.Tags key,
java.lang.Object value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
mUserId
private long mUserId
mType
private java.lang.String mType
users
private java.util.List<User> users
PresenceList
public PresenceList()
createFromHashtable
public void createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
- Create PresenceList from Hashtable generated by Hessian-decoder
- Parameters:
hash
- Hashtable containing PresenceList parameters
setValue
private void setValue(PresenceList.Tags key,
java.lang.Object value)
name
public java.lang.String name()
- Description copied from class:
BaseDataType
- Return name of the current Data-type.
- Specified by:
name
in class BaseDataType
- Returns:
- String containing name of the data-type.
getUsers
public java.util.List<User> getUsers()
- The presence list of not offline users.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
JavaDoc