net.kano.joscar.snaccmd.rooms
Class RoomInfoReq
java.lang.Object
SnacCommand
RoomCommand
RoomInfoReq
- public class RoomInfoReq
- extends RoomCommand
A SNAC command used to request more information about a chat room whose
"mini room information" is known. This request is
normally answered with a RoomResponse
. This command can be used after
being invited to a chat room and receiving a MiniRoomInfo
from
the associated ChatInvitationRvCmd
.
- Author:
- Stephen Flynn
- Source of this SNAC:
- AIM client
- SNAC command type:
- Family
0x0d
, command 0x04
Constructor Summary |
|
RoomInfoReq(MiniRoomInfo roomInfo)
Creates a new outgoing room-more-info request for the room described by
the given miniature room information block. |
protected |
RoomInfoReq(SnacPacket packet)
Generates a more-room-information command 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RoomInfoReq
protected RoomInfoReq(SnacPacket packet)
- Generates a more-room-information command from the given incoming SNAC
packet.
- Parameters:
packet
- an incoming room more info request packet
RoomInfoReq
public RoomInfoReq(MiniRoomInfo roomInfo)
- Creates a new outgoing room-more-info request for the room described by
the given miniature room information block.
- Parameters:
roomInfo
- a miniature room information block describing the room
whose information is being requested
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()