com.gs.account.entity

BaseAccount

Base account object, including all type accounts, like sip, fxo, bluetooth etc.

Supported Products:

All


Detail

Method

method description
public int getAccountId(); Get the id of the account

Range:(0-MAX_SIP_ACCOUNT-1) {@link com.gs.account.context.AccountContext.AccountLimit}


Return:

int The id of the account

Supported Products:

All

public void setAccountId(int id); Set the ID of the account.

Params:

accountId
The id of the account. Range:(0-MAX_SIP_ACCOUNT-1) {@link com.gs.account.context.AccountContext.AccountLimit}

Supported Products:

All

public boolean isActivated(); Check if the account is activated

Return:

boolean true or false

Supported Products:

All

public void setActivated(boolean activated); Set active status of the account.

Params:

activated
true or false

Supported Products:

All

public boolean isRegistered(); Check if the account is registered

Return:

boolean true or false

Supported Products:

All

public int getRegisterStatus(); Get register status

Return:

int The register status of the account
public void setRegistered(int status); Set register status of the account

Params:

status
register status of the account

Supported Products:

All

public void setRegistered(boolean isRegistered); Set if the account is registered

Params:

isRegistered
true or false

Supported Products:

All

public void setRegisterErrorCode(int errorCode); Set register error code of the account

Params:

errorCode
register failed error code of the account

Supported Products:

All

public void setAccountName(String name); Set the name of the account

Params:

name
Name of the account

Supported Products:

All

public String getAccountName(); Get the name of the account

Return:

String Name of the account

Supported Products:

All

public void setAccountNumber(String number); Set the phone number of the account.

Params:

number
The phone number of the account.

Supported Products:

All

public String getAccountNumber(); Get the phone number of the account.

Return:

String The phone number of the account.

Supported Products:

All


Member & Constant

Member description