com.vodafone360.people.engine.presence
Class NetworkPresence
java.lang.Object
com.vodafone360.people.engine.presence.NetworkPresence
public class NetworkPresence
- extends java.lang.Object
A wrapper for the user presence state on certain web or IM account
Constructor Summary |
NetworkPresence(java.lang.String userId,
int networkId,
int onlineStatusId)
Constructor with parameters. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
mUserId
private java.lang.String mUserId
mNetworkId
private int mNetworkId
mOnlineStatusId
private int mOnlineStatusId
NetworkPresence
public NetworkPresence(java.lang.String userId,
int networkId,
int onlineStatusId)
- Constructor with parameters.
- Parameters:
mNetworkId
- - the ordinal of the network name in the overall
hardcoded network list.mOnlineStatusId
- - the ordinal of user presence status in the
overall hardcoded statuses list specifically for this web
account
getNetworkId
public int getNetworkId()
- Returns:
- the ordinal of the network name on the overall hardcoded network
list.
getOnlineStatusId
public int getOnlineStatusId()
- Returns:
- the ordinal of the online status name on the overall hardcoded
status list.
getUserId
public java.lang.String getUserId()
- Returns:
- user account name on Nowplus or other social network
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
JavaDoc