|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSnacCommand
AbstractIcbm
AbstractImIcbm
SendImIcbm
A SNAC command used to send an instant message to another user.
RecvImIcbm0x04, command 0x06| Field Summary |
| Fields inherited from class AbstractIcbm |
CHANNEL_CHAT, CHANNEL_IM, CHANNEL_RV |
| Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
| Constructor Summary | |
protected |
SendImIcbm(SnacPacket packet)
Generates an IM send command from the given incoming SNAC packet. |
|
SendImIcbm(java.lang.String sn,
InstantMessage message,
boolean autoResponse,
long messageId,
boolean wantsIcon,
OldIconHashInfo iconInfo,
ExtraInfoBlock[] expInfoBlocks,
boolean ackRequested)
Creates a new outgoing IM with the given properties. |
|
SendImIcbm(java.lang.String sn,
java.lang.String message)
Creates a new outgoing IM with the given message text to the given screenname. |
|
SendImIcbm(java.lang.String sn,
java.lang.String message,
boolean autoresponse)
Creates a new unencrypted outgoing IM with the given message text to the given screenname. |
|
SendImIcbm(java.lang.String sn,
java.lang.String message,
boolean autoResponse,
long messageId,
boolean wantsIcon,
OldIconHashInfo iconInfo,
ExtraInfoBlock[] expInfoBlocks,
boolean ackRequested)
Creates a new unencrypted outgoing IM with the given properties. |
| Method Summary | |
java.lang.String |
getScreenname()
Returns the screenname to whom this message is to be sent. |
boolean |
isAckRequested()
Returns whether or not a MessageAck was requested. |
protected void |
writeChannelData(java.io.OutputStream out)
Writes the channel-specific data for this ICBM command to the given output stream. |
| Methods inherited from class AbstractImIcbm |
getAimExpressionInfo, getIconInfo, getMessage, isAutoResponse, senderWantsIcon |
| Methods inherited from class AbstractIcbm |
getChannel, getChannelData, getIcbmChannel, getIcbmMessageId, toString, writeData |
| Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected SendImIcbm(SnacPacket packet)
packet - an incoming IM send packet
public SendImIcbm(java.lang.String sn,
java.lang.String message)
acknowledgement packet is requested. Also, the ICBM message ID is
set to 0.
sn - the screenname to whom to send the given messagemessage - the message to send
public SendImIcbm(java.lang.String sn,
java.lang.String message,
boolean autoresponse)
acknowledgement packet is
requested. Also, the ICBM message ID is set to 0.
sn - the screenname to whom to send the given messagemessage - the message to sendautoresponse - whether this message is an "auto-response" or not
public SendImIcbm(java.lang.String sn,
java.lang.String message,
boolean autoResponse,
long messageId,
boolean wantsIcon,
OldIconHashInfo iconInfo,
ExtraInfoBlock[] expInfoBlocks,
boolean ackRequested)
sn - the screenname to whom to send the given messagemessage - the message to sendautoResponse - whether this message is an "auto-response" or notmessageId - an ICBM message ID to attach to this messagewantsIcon - whether or not to request the receiver's buddy iconiconInfo - a block of buddy icon hash information to "advertise" to
the receiverexpInfoBlocks - a list of AIM Expression information blocksackRequested - whether a MessageAck should be sent in
response to this command
public SendImIcbm(java.lang.String sn,
InstantMessage message,
boolean autoResponse,
long messageId,
boolean wantsIcon,
OldIconHashInfo iconInfo,
ExtraInfoBlock[] expInfoBlocks,
boolean ackRequested)
sn - the screenname to hom to send the given messagemessage - the message to sendautoResponse - whether this message is an "auto-response" or notmessageId - an ICBM message ID to attach to this messagewantsIcon - whether or not to request the receiver's buddy iconiconInfo - a block of buddy icon hash information to "advertise" to
the receiverexpInfoBlocks - a list of AIM Expression information blocksackRequested - whether a MessageAck should be sent in
response to this command| Method Detail |
public final java.lang.String getScreenname()
public final boolean isAckRequested()
MessageAck was requested.
protected void writeChannelData(java.io.OutputStream out)
throws java.io.IOException
AbstractIcbm
writeChannelData in class AbstractIcbmout - the stream to write to
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||