public final class ChatMessage extends Object
Protocol 3. Supersedes the MESSAGE object.| Modifier and Type | Class and Description |
|---|---|
static class |
ChatMessage.LeaveReason
Enumeration for LeaveReason.
|
static class |
ChatMessage.Status
Enumeration for STATUS of CHATMESSAGE.
|
static class |
ChatMessage.Type
Enumeration for type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object compared)
Compare two object to check equalness.
|
User[] |
getAllUsers()
Return all users added to CHAT.
|
Chat |
getChat()
Get the parent CHAT object for this CHATMESSAGE.
|
String |
getContent()
Get the content of this CHATMESSAGE.
|
Object |
getData(String name)
Returns the user data to which this object maps to the specified by the name.
|
String |
getId()
Return CHATMESSAGE ID.
|
ChatMessage.LeaveReason |
getLeaveReason()
Get the leave reason.
|
User |
getSender()
Return the User who sended this CHATMESSAGE.
|
String |
getSenderDisplayName()
Return the displayname of the sender of this CHATMESSAGE.
|
String |
getSenderId()
Return the handle of the user who has sent this CHATMESSAGE.
|
ChatMessage.Status |
getStatus()
Get the status of this CHATMESSAGE.
|
Date |
getTime()
Return time when message was sent (UNIX timestamp).
|
ChatMessage.Type |
getType()
Get the type of this CHATMESSAGE.
|
int |
hashCode()
Returns the hashcode for this object.
|
boolean |
isEditable()
Indicates if the chat message is editable.
|
void |
setContent(String content)
Sets the content of the chat message to the specified string.
|
void |
setData(String name,
Object userData)
Associates the specified user data with the specified name in this object.
|
public int hashCode()
public boolean equals(Object compared)
public String getId()
public Date getTime() throws SkypeException
SkypeException - when connection has gone bad.public User getSender() throws SkypeException
SkypeException - when connection has gone bad.public String getSenderId() throws SkypeException
SkypeException - when the connection has gone bad.public String getSenderDisplayName() throws SkypeException
SkypeException - when the connection has gone bad.public ChatMessage.Type getType() throws SkypeException
SkypeException - when the connection has gone bad.ChatMessage.Typepublic ChatMessage.Status getStatus() throws SkypeException
SkypeException - when the connection has gone bad.ChatMessage.Statuspublic ChatMessage.LeaveReason getLeaveReason() throws SkypeException
SkypeException - when the connection has gone bad.ChatMessage.LeaveReasonpublic String getContent() throws SkypeException
SkypeException - when the connection has gone bad.public void setContent(String content) throws SkypeException
name - the string that is to be this chat message's contentSkypeException - when the connection has gone bad.getContent()public boolean isEditable()
throws SkypeException
SkypeException - when the connection has gone bad.public Chat getChat() throws SkypeException
SkypeException - when the connection has gone bad.Chatpublic User[] getAllUsers() throws SkypeException
SkypeException - when connection has gone bad.public final Object getData(String name)
name - name whose associated user data is to be returned.Map.get(Object)public final void setData(String name, Object userData)
name - name with which the specified user data is to be associated.userData - user data to be associated with the specified name.Map.put(Object, Object)Copyright © 2013. All Rights Reserved.