com.vodafone360.people.datatypes
Class PresenceList

java.lang.Object
  extended by com.vodafone360.people.datatypes.BaseDataType
      extended by 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


Nested Class Summary
private static class PresenceList.Tags
           
 
Field Summary
private  java.lang.String mType
           
private  long mUserId
           
static java.lang.String NAME
           
private  java.util.List<User> users
           
 
Constructor Summary
PresenceList()
           
 
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
 

Field Detail

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
Constructor Detail

PresenceList

public PresenceList()
Method Detail

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