net.kano.joscar.snaccmd.icbm
Class MissedMessagesCmd

java.lang.Object
  extended bySnacCommand
      extended byIcbmCommand
          extended byMissedMessagesCmd

public class MissedMessagesCmd
extends IcbmCommand

A SNAC command sent to indicate to a client that one or more messages were "missed." Messages can be missed for various reasons; see MissedMsgInfo for more information.

Source of this SNAC:
AIM server
SNAC command type:
Family 0x04, command 0x0a

Field Summary
 
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
  MissedMessagesCmd(MissedMsgInfo[] missedMsgInfos)
          Creates a new outgoing missed-messages command with the given list of missed message information blocks.
protected MissedMessagesCmd(SnacPacket packet)
          Generates a new missed-messages command from the given incoming SNAC packet.
 
Method Summary
 MissedMsgInfo[] getMissedMsgInfos()
          Returns the list of missed message information blocks sent in this command.
 java.lang.String toString()
           
 void writeData(java.io.OutputStream out)
          Writes this command's SNAC data block to the given stream.
 
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

MissedMessagesCmd

protected MissedMessagesCmd(SnacPacket packet)
Generates a new missed-messages command from the given incoming SNAC packet.

Parameters:
packet - an incoming missed-messages packet

MissedMessagesCmd

public MissedMessagesCmd(MissedMsgInfo[] missedMsgInfos)
Creates a new outgoing missed-messages command with the given list of missed message information blocks.

Parameters:
missedMsgInfos - a list of objects describing the missed messages
Method Detail

getMissedMsgInfos

public final MissedMsgInfo[] getMissedMsgInfos()
Returns the list of missed message information blocks sent in this command.

Returns:
the list of missed message blocks

writeData

public void writeData(java.io.OutputStream out)
               throws java.io.IOException
Description copied from class: SnacCommand
Writes this command's SNAC data block to the given stream. The SNAC data block is the data after the first ten bytes of a SNAC packet.

Specified by:
writeData in class SnacCommand
Parameters:
out - the stream to which to write the SNAC data
Throws:
java.io.IOException - if an I/O error occurs

toString

public java.lang.String toString()