net.kano.joscar.snaccmd.icbm
Class SendTypingNotification
java.lang.Object
SnacCommand
IcbmCommand
TypingCmd
SendTypingNotification
- public class SendTypingNotification
- extends TypingCmd
A SNAC command used to send another user an indication of the user's "typing
status" -- that is, information about whether the user is currently typing a
message.
- See Also:
RecvTypingNotification- Source of this SNAC:
- AIM client
- SNAC command type:
- Family
0x04, command 0x14
| Fields inherited from class IcbmCommand |
CMD_ICBM, CMD_MISSED, CMD_MSG_ACK, CMD_PARAM_INFO, CMD_PARAM_INFO_REQ, CMD_RECV_TYPING, CMD_RV_RESPONSE, CMD_SEND_ICBM, CMD_SEND_TYPING, CMD_SET_PARAM_INFO, CMD_WARN, FAMILY_ICBM, FAMILY_INFO |
|
Constructor Summary |
|
SendTypingNotification(long nulls,
int code,
java.lang.String sn,
int typingState)
Creates a new outgoing typing notification command with the given
properties. |
protected |
SendTypingNotification(SnacPacket packet)
Generates a new send-typing-notification command from the given
incoming SNAC packet. |
|
SendTypingNotification(java.lang.String sn,
int typingState)
Creates a new outgoing typing notification command to the given user
and with the given typing state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SendTypingNotification
protected SendTypingNotification(SnacPacket packet)
- Generates a new send-typing-notification command from the given
incoming SNAC packet.
- Parameters:
packet - an incoming send-typing-notification packet
SendTypingNotification
public SendTypingNotification(java.lang.String sn,
int typingState)
- Creates a new outgoing typing notification command to the given user
and with the given typing state. The values of
nulls and
code are their defaults, TypingCmd.NULLS_DEFAULT and
TypingCmd.CODE_DEFAULT, respectively. Using this constructor is equivalent
to using new
SendTypingNotification(SendTypingNotification.NULLS_DEFAULT,
SendTypingNotification.CODE_DEFAULT, sn, typingState).
- Parameters:
sn - the screenname to which the user is typingtypingState - a typing state, like TypingCmd.STATE_PAUSED
SendTypingNotification
public SendTypingNotification(long nulls,
int code,
java.lang.String sn,
int typingState)
- Creates a new outgoing typing notification command with the given
properties.
- Parameters:
nulls - the value for the first eight bytes of the typing
notification command (currently WinAIM sends TypingCmd.NULLS_DEFAULT (0))code - some sort of typing notification code (currently WinAIM sends
TypingCmd.CODE_DEFAULT)sn - the screenname to which the user is typingtypingState - a typing state, like TypingCmd.STATE_TYPING