net.kano.joscar.snaccmd.ssi
Class ModifyItemsCmd

java.lang.Object
  extended bySnacCommand
      extended bySsiCommand
          extended byItemsCmd
              extended byModifyItemsCmd

public class ModifyItemsCmd
extends ItemsCmd

A SNAC command used to modify server-stored "items" that already exist on the server. Normally responded-to with a SsiDataModResponse.

See Also:
SsiDataModResponse
Source of this SNAC:
AIM client
SNAC command type:
Family 0x13, command 0x09

Field Summary
 
Fields inherited from class SsiCommand
CMD_ACTIVATE, CMD_CREATE_ITEMS, CMD_DATA_CHECK, CMD_DATA_REQ, CMD_DELETE_ITEMS, CMD_MOD_ACK, CMD_MODIFY_ITEMS, CMD_POST_MOD, CMD_PRE_MOD, CMD_RIGHTS, CMD_RIGHTS_REQ, CMD_SSI_DATA, CMD_UNCHANGED, FAMILY_INFO, FAMILY_SSI
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
protected ModifyItemsCmd(SnacPacket packet)
          Generates a new modify-SSI-items command from the given incoming SNAC packet.
  ModifyItemsCmd(SsiItem[] items)
          Creates a new SSI modification command with the given items.
 
Methods inherited from class ItemsCmd
getItems, 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

ModifyItemsCmd

protected ModifyItemsCmd(SnacPacket packet)
Generates a new modify-SSI-items command from the given incoming SNAC packet.

Parameters:
packet - an incoming SSI modification packet

ModifyItemsCmd

public ModifyItemsCmd(SsiItem[] items)
Creates a new SSI modification command with the given items. Note that, in essence, this command will replace items with the same type/parentID/subID with the corresponding items you provide here. In other words, this command does not actually "modify" the given items but rather "replaces" them.

Parameters:
items - a list of items to "modify"