|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.chat.ChatMessage
public class ChatMessage
The ChatMessage class encapsulates message information in order to provide a single object containing all data needed to display a chat message.
| Constructor Summary | |
|---|---|
ChatMessage(String contactName,
long date,
String messageType,
String message,
String contentType)
Creates a ChatMessage by specifying all parameters of the message. |
|
ChatMessage(String contactName,
long date,
String messageType,
String messageTitle,
String message,
String contentType)
Creates a ChatMessage by specifying all parameters of the message. |
|
ChatMessage(String contactName,
String contactDisplayName,
long date,
String messageType,
String message,
String contentType)
Creates a ChatMessage by specifying all parameters of the message. |
|
ChatMessage(String contactName,
String contactDisplayName,
long date,
String messageType,
String messageTitle,
String message,
String contentType)
Creates a ChatMessage by specifying all parameters of the message. |
|
| Method Summary | |
|---|---|
String |
getContactDisplayName()
Returns the display name of the contact sending the message. |
String |
getContactName()
Returns the name of the contact sending the message. |
String |
getContentType()
Returns the content type (e.g. |
long |
getDate()
Returns the date and time of the message. |
String |
getMessage()
Returns the content of the message. |
String |
getMessageTitle()
Returns the title of the message. |
String |
getMessageType()
Returns the type of the message. |
void |
setMessage(String message)
Sets the content of the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatMessage(String contactName,
long date,
String messageType,
String message,
String contentType)
contactName - the name of the contactdate - the date and timemessageType - the type (INCOMING or OUTGOING)message - the contentcontentType - the content type (e.g. "text", "text/html", etc.)
public ChatMessage(String contactName,
long date,
String messageType,
String messageTitle,
String message,
String contentType)
contactName - the name of the contactcontactDisplayName - the contact display namedate - the date and timemessageType - the type (INCOMING or OUTGOING)message - the contentcontentType - the content type (e.g. "text", "text/html", etc.)
public ChatMessage(String contactName,
String contactDisplayName,
long date,
String messageType,
String message,
String contentType)
contactName - the name of the contactcontactDisplayName - the contact display namedate - the date and timemessageType - the type (INCOMING or OUTGOING)message - the contentcontentType - the content type (e.g. "text", "text/html", etc.)
public ChatMessage(String contactName,
String contactDisplayName,
long date,
String messageType,
String messageTitle,
String message,
String contentType)
contactName - the name of the contactcontactDisplayName - the contact display namedate - the date and timemessageType - the type (INCOMING or OUTGOING)message - the contentcontentType - the content type (e.g. "text", "text/html", etc.)| Method Detail |
|---|
public String getContactName()
public String getContactDisplayName()
public long getDate()
public String getMessageType()
public String getMessageTitle()
public String getMessage()
public void setMessage(String message)
message - the new contentpublic String getContentType()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||