|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.engine.presence.User
public class User
User is a class encapsulating the information about a user's presence state.
Field Summary | |
---|---|
private static java.lang.String |
COLUMNS
|
private long |
mLocalContactId
|
private int |
mOverallOnline
|
private java.util.ArrayList<NetworkPresence> |
mPayload
|
Constructor Summary | |
---|---|
User()
Default Constructor. |
|
User(java.lang.String userId,
java.util.Hashtable<java.lang.String,java.lang.String> payload)
Constructor. |
Method Summary | |
---|---|
private static java.util.ArrayList<NetworkPresence> |
createPayload(java.lang.String userId,
java.util.Hashtable<java.lang.String,java.lang.String> payload)
|
boolean |
equals(java.lang.Object obj)
|
long |
getLocalContactId()
This method returns the localContactId for this contact in DB across the application . |
java.util.ArrayList<NetworkPresence> |
getPayload()
Returns communities presence status |
ContactSummary.OnlineStatus |
getStatusForNetwork(NetworkPresence.SocialNetwork network)
|
int |
hashCode()
|
int |
isOnline()
Returns the overall user presence status: in fact the one from the below status states first encountered for all known user accounts next: INVISIBLE, ONLINE, IDLE, OFFLINE |
private int |
isOverallOnline(java.util.Hashtable<java.lang.String,java.lang.String> payload)
Returns the overall user presence status |
private static java.lang.String |
parseUserName(java.lang.String userId)
|
void |
setLocalContactId(long mLocalContactId)
|
void |
setOverallOnline(int overallOnline)
|
void |
setPayload(java.util.ArrayList<NetworkPresence> payload)
Returns communities presence status |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String COLUMNS
private long mLocalContactId
private int mOverallOnline
private java.util.ArrayList<NetworkPresence> mPayload
Constructor Detail |
---|
public User()
public User(java.lang.String userId, java.util.Hashtable<java.lang.String,java.lang.String> payload)
userId
- - user id in the contact list, e.g.
"google::userid@gmail.com" or "882339"payload
- - communities presence status {google:online, pc:online,
mobile:online}Method Detail |
---|
public long getLocalContactId()
public void setLocalContactId(long mLocalContactId)
public java.util.ArrayList<NetworkPresence> getPayload()
public ContactSummary.OnlineStatus getStatusForNetwork(NetworkPresence.SocialNetwork network)
public void setPayload(java.util.ArrayList<NetworkPresence> payload)
private int isOverallOnline(java.util.Hashtable<java.lang.String,java.lang.String> payload)
public int isOnline()
private static java.util.ArrayList<NetworkPresence> createPayload(java.lang.String userId, java.util.Hashtable<java.lang.String,java.lang.String> payload)
payload
-
private static java.lang.String parseUserName(java.lang.String userId)
user
-
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void setOverallOnline(int overallOnline)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc