|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.mn.communicator.AbstractMessage
pl.mn.communicator.OutgoingMessage
public class OutgoingMessage
The class that represents message that will be sent to the Gadu-Gadu server.
Created on 2004-11-21
| Field Summary |
|---|
| Fields inherited from class pl.mn.communicator.AbstractMessage |
|---|
m_messageBody, m_messageClass, m_messageID, m_recipientUin |
| Method Summary | |
|---|---|
void |
addAdditionalRecipient(int recipientUin)
|
static OutgoingMessage |
createChatMessage(int uin,
java.lang.String messageBody)
Creates an outgoing message that is a part of a previous conversation |
static OutgoingMessage |
createMessageWithoutConfirmation(int uin,
java.lang.String messageBody)
Creates an outgoing message and sets a special flag that will notify Gadu-Gadu server that we do not want to receive the confirmation from the server that this message was delivered to the user it is addressed. |
static OutgoingMessage |
createNewMessage(int uin,
java.lang.String messageBody)
Creates an outgoing message that will be poped up in a new window. |
static OutgoingMessage |
createPingMessage(int uin)
Creates an outgoing message that only pings the user. |
int[] |
getAdditionalRecipients()
|
int[] |
getAllRecipients()
|
void |
removeAdditionalRecipient(int recipientUin)
|
void |
setMessageBody(java.lang.String messageBody)
Use this method if you want to set new message body on this message. |
void |
setRecipientUin(int recipientUin)
Use this method if you want to set new uin on this message. |
| Methods inherited from class pl.mn.communicator.AbstractMessage |
|---|
getMessageBody, getMessageClass, getMessageID, getRecipientUin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pl.mn.communicator.IMessage |
|---|
getMessageBody, getMessageClass, getMessageID, getRecipientUin |
| Method Detail |
|---|
public static OutgoingMessage createNewMessage(int uin,
java.lang.String messageBody)
uin - Gadu-Gadu number to of the user to whom this message is addressed.messageBody - the body of the message.
public static OutgoingMessage createChatMessage(int uin,
java.lang.String messageBody)
uin - Gadu-Gadu number to of the user to whom this message is addressed.messageBody - the body of the message.
public static OutgoingMessage createPingMessage(int uin)
uin - Gadu-Gadu number to of the user to whom this ping is addressed.
public static OutgoingMessage createMessageWithoutConfirmation(int uin,
java.lang.String messageBody)
uin - Gadu-Gadu number to of the user to whom this message is addressed.messageBody - the body of the message.
public void setMessageBody(java.lang.String messageBody)
setMessageBody in interface IOutgoingMessagemessageBody - the new message body.
java.lang.NullPointerException - if the messageBody object is null.public void setRecipientUin(int recipientUin)
setRecipientUin in interface IOutgoingMessageuin - the new Gadu-Gadu number to whom this message will be addressed.
java.lang.IllegalArgumentException - if the uin is a negative value.public void addAdditionalRecipient(int recipientUin)
addAdditionalRecipient in interface IOutgoingMessagepublic void removeAdditionalRecipient(int recipientUin)
removeAdditionalRecipient in interface IOutgoingMessagepublic int[] getAdditionalRecipients()
getAdditionalRecipients in interface IOutgoingMessagepublic int[] getAllRecipients()
getAllRecipients in interface IOutgoingMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||