net.kano.joscar.snaccmd.rooms
Class RoomRightsRequest

java.lang.Object
  extended bySnacCommand
      extended byRoomCommand
          extended byRoomRightsRequest

public class RoomRightsRequest
extends RoomCommand

A SNAC command sent to request a list of chat exchanges available on the server along with the maximum number of rooms a user can simultaneously occupy. Normally responded-to with a RoomResponse.

See Also:
RoomResponse
Source of this SNAC:
AIM client
SNAC command type:
Family 0x0d, command 0x02

Field Summary
 
Fields inherited from class RoomCommand
CMD_EXCH_INFO_REQ, CMD_JOIN_ROOM, CMD_MORE_ROOM_INFO, CMD_RIGHTS_REQ, CMD_ROOM_RESPONSE, FAMILY_INFO, FAMILY_ROOM
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
  RoomRightsRequest()
          Creates a new outgoing room rights request.
protected RoomRightsRequest(SnacPacket packet)
          Generates a room rights request from the given incoming SNAC packet.
 
Method Summary
 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

RoomRightsRequest

protected RoomRightsRequest(SnacPacket packet)
Generates a room rights request from the given incoming SNAC packet.

Parameters:
packet - the incoming room rights request

RoomRightsRequest

public RoomRightsRequest()
Creates a new outgoing room rights request.

Method Detail

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()