|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.datatypes.BaseDataType com.vodafone360.people.datatypes.ChatMessage
public class ChatMessage
Nested Class Summary | |
---|---|
static class |
ChatMessage.Tags
|
Field Summary | |
---|---|
private java.lang.String |
mBody
|
private java.lang.String |
mConversationId
Unique server-supplied conversation id |
private long |
mLocalContactId
localContactId of the "from" user in the Contacts table |
private int |
mNetworkId
Network id of the "from" user (as in the SocialNetwork enumeration) |
private java.util.List<java.lang.String> |
mTos
The "to" user |
private java.lang.String |
mUserId
The "from" user |
private static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
|
ChatMessage()
|
protected |
ChatMessage(RpgPushMessage msg)
|
Method Summary | |
---|---|
private void |
createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create ChatMessage from Hashtable generated by Hessian-decoder. |
java.lang.String |
getBody()
|
java.lang.String |
getConversationId()
|
java.lang.Long |
getLocalContactId()
|
int |
getNetworkId()
|
java.util.List<java.lang.String> |
getTos()
|
java.lang.String |
getUserId()
|
java.lang.String |
name()
Return name of the current Data-type. |
void |
setBody(java.lang.String body)
|
void |
setConversationId(java.lang.String conversationId)
|
void |
setLocalContactId(java.lang.Long localContactId)
|
void |
setNetworkId(int networkId)
|
void |
setTos(java.util.List<java.lang.String> tos)
|
void |
setUserId(java.lang.String senderUserId)
|
private void |
setValue(ChatMessage.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 |
---|
private static final java.lang.String NAME
private java.lang.String mConversationId
private java.lang.String mUserId
private long mLocalContactId
private int mNetworkId
private java.lang.String mBody
private java.util.List<java.lang.String> mTos
Constructor Detail |
---|
public ChatMessage()
protected ChatMessage(RpgPushMessage msg)
Method Detail |
---|
private void createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
hash
- Hashtable containing ChatMessage parametersprivate void setValue(ChatMessage.Tags key, java.lang.Object value)
public java.lang.String name()
BaseDataType
name
in class BaseDataType
public java.lang.String getConversationId()
public void setConversationId(java.lang.String conversationId)
public java.lang.String getBody()
public void setBody(java.lang.String body)
public java.util.List<java.lang.String> getTos()
public void setTos(java.util.List<java.lang.String> tos)
public java.lang.Long getLocalContactId()
public void setLocalContactId(java.lang.Long localContactId)
public java.lang.String getUserId()
public void setUserId(java.lang.String senderUserId)
public int getNetworkId()
public void setNetworkId(int networkId)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc