net.kano.joscar.snaccmd.rooms
Class ExchangeInfoReq
java.lang.Object
SnacCommand
RoomCommand
ExchangeInfoReq
- public class ExchangeInfoReq
- extends RoomCommand
A SNAC command sent to request information about a particular chat
"exchange." Normally responded-to with a RoomResponse
.
- See Also:
RoomResponse
- Source of this SNAC:
- AIM client
- SNAC command type:
- Family
0x0d
, command 0x03
Constructor Summary |
|
ExchangeInfoReq(int exchange)
Creates a new exchange information request for the given exchange. |
protected |
ExchangeInfoReq(SnacPacket packet)
Generates a new exchange information request from the given incoming SNAC
packet. |
Method Summary |
int |
getExchange()
Returns the exchange whose information is being requested. |
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 |
ExchangeInfoReq
protected ExchangeInfoReq(SnacPacket packet)
- Generates a new exchange information request from the given incoming SNAC
packet.
- Parameters:
packet
- an incoming exchange information request packet
ExchangeInfoReq
public ExchangeInfoReq(int exchange)
- Creates a new exchange information request for the given exchange.
- Parameters:
exchange
- the exchange whose information is being requested
getExchange
public final int getExchange()
- Returns the exchange whose information is being requested.
- Returns:
- the exchange 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()