net.kano.joscar.snaccmd.chat
Class ChatCommand

java.lang.Object
  extended bySnacCommand
      extended byChatCommand
Direct Known Subclasses:
RoomInfoUpdate, UsersCmd

public abstract class ChatCommand
extends SnacCommand

A base class for commands in the "chat" 0x0e SNAC family.


Field Summary
static int CMD_RECV_CHAT_MSG
          A command subtype for a chat message command.
static int CMD_ROOM_UPDATE
          A command subtype for a room information update notification.
static int CMD_SEND_CHAT_MSG
          A command subtype for sending a message to a chat room.
static int CMD_USERS_JOINED
          A command subtype for a command sent when users enter a chat room.
static int CMD_USERS_LEFT
          A command subtype for a command sent when users exit a chat room.
static int FAMILY_CHAT
          The family code for this SNAC family.
static SnacFamilyInfo FAMILY_INFO
          A set of SNAC family information for this family.
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
protected ChatCommand(int command)
          Creates a new SNAC command in the chat family.
 
Methods inherited from class SnacCommand
getCommand, getFamily, getFlag1, getFlag2, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAMILY_CHAT

public static final int FAMILY_CHAT
The family code for this SNAC family.

See Also:
Constant Field Values

FAMILY_INFO

public static final SnacFamilyInfo FAMILY_INFO
A set of SNAC family information for this family.


CMD_SEND_CHAT_MSG

public static final int CMD_SEND_CHAT_MSG
A command subtype for sending a message to a chat room.

See Also:
Constant Field Values

CMD_ROOM_UPDATE

public static final int CMD_ROOM_UPDATE
A command subtype for a room information update notification.

See Also:
Constant Field Values

CMD_USERS_JOINED

public static final int CMD_USERS_JOINED
A command subtype for a command sent when users enter a chat room.

See Also:
Constant Field Values

CMD_USERS_LEFT

public static final int CMD_USERS_LEFT
A command subtype for a command sent when users exit a chat room.

See Also:
Constant Field Values

CMD_RECV_CHAT_MSG

public static final int CMD_RECV_CHAT_MSG
A command subtype for a chat message command.

See Also:
Constant Field Values
Constructor Detail

ChatCommand

protected ChatCommand(int command)
Creates a new SNAC command in the chat family.

Parameters:
command - the SNAC command subtype