net.kano.joscar.snaccmd.acct
Class AcctInfoCmd
java.lang.Object
SnacCommand
AcctCommand
AcctResponse
AcctInfoCmd
- public class AcctInfoCmd
- extends AcctResponse
A SNAC command containing information about one's account. Normally sent in
response to an AcctInfoRequest
.
- See Also:
AcctInfoRequest
- Source of this SNAC:
- AIM server
- SNAC command type:
- Family
0x07
, command 0x03
Constructor Summary |
|
AcctInfoCmd(int type,
int result,
java.lang.String sn,
java.lang.String email,
int errorCode,
java.lang.String errorUrl)
Creates an outgoing account information response object with the given
properties. |
|
AcctInfoCmd(int errorCode,
java.lang.String errorUrl)
Creates an outgoing account information response containing nothing but
the given error code and URL. |
protected |
AcctInfoCmd(SnacPacket packet)
Generates an account info response from the given incoming SNAC packet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AcctInfoCmd
protected AcctInfoCmd(SnacPacket packet)
- Generates an account info response from the given incoming SNAC packet.
- Parameters:
packet
- an account information response packet
AcctInfoCmd
public AcctInfoCmd(int type,
int result,
java.lang.String sn,
java.lang.String email,
int errorCode,
java.lang.String errorUrl)
- Creates an outgoing account information response object with the given
properties.
- Parameters:
type
- a "type code" for this response (normally AcctResponse.TYPE_DEFAULT
)result
- a result code (like AcctResponse.RESULT_SUCCESS
)sn
- a screenname, or null
for noneemail
- an email address, or null
for noneerrorCode
- an error code like AcctResponse.ERRORCODE_NO_EMAIL
, or
-1
for noneerrorUrl
- an error URL, or null
for none
AcctInfoCmd
public AcctInfoCmd(int errorCode,
java.lang.String errorUrl)
- Creates an outgoing account information response containing nothing but
the given error code and URL. The command is created with a type of
AcctResponse.TYPE_DEFAULT
and a result code of AcctResponse.RESULT_ERROR
.
- Parameters:
errorCode
- an error code like AcctResponse.ERRORCODE_NO_EMAIL
, or
-1
for noneerrorUrl
- an error URL, or null
for none