net.kano.joscar.snaccmd.icbm
Class RecvTypingNotification

java.lang.Object
  extended bySnacCommand
      extended byIcbmCommand
          extended byTypingCmd
              extended byRecvTypingNotification

public class RecvTypingNotification
extends TypingCmd

A SNAC command used to indicate another user's typing status.

See Also:
SendTypingNotification
Source of this SNAC:
AIM server
SNAC command type:
Family 0x04, command 0x14

Field Summary
 
Fields inherited from class TypingCmd
CODE_DEFAULT, NULLS_DEFAULT, STATE_NO_TEXT, STATE_PAUSED, STATE_TYPING
 
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
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
  RecvTypingNotification(long nulls, int code, java.lang.String sn, int typingState)
          Creates an outgoing client-bound typing notification command with the given properties.
protected RecvTypingNotification(SnacPacket packet)
          Generates a new incoming typing notification command from the given incoming SNAC packet.
  RecvTypingNotification(java.lang.String sn, int typingState)
          Creates an outgoing client-bound typing notification command with the given properties.
 
Methods inherited from class TypingCmd
getCode, getNullBlockValue, getScreenname, getTypingState, 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

RecvTypingNotification

protected RecvTypingNotification(SnacPacket packet)
Generates a new incoming typing notification command from the given incoming SNAC packet.

Parameters:
packet - an incoming typing notification packet

RecvTypingNotification

public RecvTypingNotification(java.lang.String sn,
                              int typingState)
Creates an outgoing client-bound typing notification command with the given properties. The value of nulls is TypingCmd.NULLS_DEFAULT (0) and the value of code is TypingCmd.CODE_DEFAULT.

Parameters:
sn - the screenname of the user who is typing
typingState - the typing state of the user, like TypingCmd.STATE_PAUSED

RecvTypingNotification

public RecvTypingNotification(long nulls,
                              int code,
                              java.lang.String sn,
                              int typingState)
Creates an outgoing client-bound typing notification command with the given properties.

Parameters:
nulls - a value for the first eight bytes of the typing notification command, normally 0, but here in case that changes in the future
code - some sort of code, normally TypingCmd.CODE_DEFAULT
sn - the screenname of the user who is typing
typingState - the typing state of the user, like TypingCmd.STATE_PAUSED