|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.ChatMessage
public final class ChatMessage
This class implements Skype CHATMESSAGE object.
Protocol 3. Supersedes the MESSAGE object.,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
ChatMessage.LeaveReason
Enumeration for LeaveReason. |
static class |
ChatMessage.Status
Enumeration for STATUS of CHATMESSAGE. |
static class |
ChatMessage.Type
Enumeration for type. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object compared)
equals in class Objectcompared - the object to check against.
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.Type
public ChatMessage.Status getStatus()
throws SkypeException
SkypeException - when the connection has gone bad.ChatMessage.Status
public ChatMessage.LeaveReason getLeaveReason()
throws SkypeException
SkypeException - when the connection has gone bad.ChatMessage.LeaveReason
public 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 content
SkypeException - 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.Chat
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||