All apis of Account
All
method | description |
---|---|
public static List<SipAccount> getAllSipAccounts (); |
Get all sip accounts
Return:return ListSupported Products:All |
public static List<SipAccount> getUsableSipAccounts (); |
Get all usable sip accounts.
Return:return ListSupported Products:All |
public static BaseAccount getAccountById (int accountId); |
Get the account by account ID
Params:Return:return BaseAccount This object can be cast to its subclasses if you know the account type.Supported Products:All |
public static boolean updateSipAccount (SipAccount sipAccount); |
Update account information of a SIP account. Take care that the empty value will overwrite
the exist value.
Params:Supported Products:All |
public static boolean addStatusListener (String pkgForDebug, IAccountStatusListener callback, int events, boolean notifyNow); |
Register account status listener and specify which event to observe.
Params:Return:return boolean true:register success false:register failSupported Products:All |
public static boolean removeStatusListener (IAccountStatusListener callback); |
remove account listener
Params:Return:return boolean true: remove ok;false: remove failSupported Products:All |
public static boolean isSipAccount (int accountId); |
Check if it is sip account.
Params:Return:return boolean true or falseSupported Products:All |
Member | description |
---|---|
public static final String API |
The tag name of BaseAccountApi,which is used in {@link com.gs.common.client.ApiClient.Builder#addApi(String)} Supported Products:All |