|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
AcctCommand
AcctInfoRequest
A SNAC command sent to request some information about one's AIM account.
AcctInfoCmd
0x07
, command 0x02
Field Summary | |
static int |
SUBTYPE_DEFAULT
The only subtype code ever used as of this writing. |
static int |
TYPE_EMAIL
A type code indicating that this is a request for the user's registered email address. |
static int |
TYPE_SN
A type code indicating that this is a request for the user's screenname in the correct format (that is, with the "official" spacing and capitalization seen by other users). |
Fields inherited from class AcctCommand |
CMD_ACCT_MOD, CMD_CONFIRM, CMD_CONFIRM_ACK, CMD_INFO_REQ, CMD_INFO_RESP, CMD_MOD_ACK, FAMILY_ACCT, FAMILY_INFO |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
AcctInfoRequest(int type)
Creates an outgoing account information request command with the given type and a subtype of SUBTYPE_DEFAULT . |
|
AcctInfoRequest(int type,
int subType)
Creates an outgoing account information request command with the given type and subtype. |
protected |
AcctInfoRequest(SnacPacket packet)
Generates an account information request command from the given incoming SNAC packet. |
Method Summary | |
int |
getSubType()
Returns the "subtype" code of this request. |
int |
getType()
Returns the "type" code of this request. |
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 |
Field Detail |
public static final int TYPE_SN
public static final int TYPE_EMAIL
public static final int SUBTYPE_DEFAULT
Constructor Detail |
protected AcctInfoRequest(SnacPacket packet)
packet
- the packet from which this object should be readpublic AcctInfoRequest(int type)
SUBTYPE_DEFAULT
.
type
- the type of this command, like TYPE_SN
public AcctInfoRequest(int type, int subType)
type
- the type of this command, like TYPE_EMAIL
subType
- the subtype of this command; should probably always be
SUBTYPE_DEFAULT
Method Detail |
public final int getType()
TYPE_SN
or TYPE_EMAIL
.
public final int getSubType()
SUBTYPE_DEFAULT
.
public void writeData(java.io.OutputStream out) throws java.io.IOException
SnacCommand
writeData
in class SnacCommand
out
- the stream to which to write the SNAC data
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |