net.kano.joscar.snaccmd.acct
Class AcctInfoCmd

java.lang.Object
  extended bySnacCommand
      extended byAcctCommand
          extended byAcctResponse
              extended byAcctInfoCmd

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

Field Summary
 
Fields inherited from class AcctResponse
ERRORCODE_CANNOT_DISPLAY_INFO, ERRORCODE_NO_EMAIL, RESULT_ERROR, RESULT_SUCCESS, TYPE_DEFAULT
 
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
  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 AcctResponse
getEmail, getErrorCode, getErrorUrl, getResult, getScreenname, getType, toString, writeData
 
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

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 none
email - an email address, or null for none
errorCode - an error code like AcctResponse.ERRORCODE_NO_EMAIL, or -1 for none
errorUrl - 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 none
errorUrl - an error URL, or null for none