public interface AccountCreator
Modifier and Type | Interface and Description |
---|---|
static class |
AccountCreator.ActivationCodeStatus |
static class |
AccountCreator.DomainStatus |
static class |
AccountCreator.EmailStatus |
static class |
AccountCreator.LanguageStatus |
static class |
AccountCreator.PasswordStatus |
static class |
AccountCreator.PhoneNumberStatus |
static class |
AccountCreator.Status |
static class |
AccountCreator.TransportStatus |
static class |
AccountCreator.UsernameStatus |
Modifier and Type | Method and Description |
---|---|
AccountCreator.Status |
activateAccount()
Send a request to activate an account on server.
|
AccountCreator.Status |
activateAlias()
Send a request to activate an alias.
|
void |
addListener(AccountCreatorListener listener) |
AccountCreator |
create(Core core)
Create a
AccountCreator and set Linphone Request callbacks. |
AccountCreator.Status |
createAccount()
Send a request to create an account on server.
|
ProxyConfig |
createProxyConfig()
Create and configure a proxy config and a authentication info for an account
creator. |
java.lang.String |
getActivationCode()
Get the activation code.
|
java.lang.String |
getAlgorithm()
Get the algorithm configured in the account creator.
|
java.lang.String |
getDisplayName()
Get the display name.
|
java.lang.String |
getDomain()
Get the domain.
|
java.lang.String |
getEmail()
Get the email.
|
java.lang.String |
getHa1()
Get the ha1.
|
java.lang.String |
getLanguage()
Get the language use in email of SMS.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
java.lang.String |
getPassword()
Get the password.
|
java.lang.String |
getPhoneCountryCode()
Get the international prefix.
|
java.lang.String |
getPhoneNumber()
Get the RFC 3966 normalized phone number.
|
java.lang.String |
getRoute()
Get the route.
|
boolean |
getSetAsDefault()
Get the set_as_default property.
|
TransportType |
getTransport()
Get Transport.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
java.lang.String |
getUsername()
Get the username.
|
AccountCreator.Status |
isAccountActivated()
Send a request to know if an account is activated on server.
|
AccountCreator.Status |
isAccountExist()
Send a request to know the existence of account on server.
|
AccountCreator.Status |
isAccountLinked()
Send a request to know if an account is linked.
|
AccountCreator.Status |
isAliasUsed()
Send a request to know if an alias is used.
|
AccountCreator.Status |
linkAccount()
Send a request to link an account to an alias.
|
AccountCreator.Status |
loginLinphoneAccount()
Send a request to get the password & algorithm of an account using the
confirmation key. |
AccountCreator.Status |
recoverAccount()
Send a request to recover an account.
|
void |
removeListener(AccountCreatorListener listener) |
void |
reset()
Reset the account creator entries like username, password, phone number...
|
AccountCreator.ActivationCodeStatus |
setActivationCode(java.lang.String activationCode)
Set the activation code.
|
AccountCreatorAlgoStatus |
setAlgorithm(java.lang.String algorithm)
Set the supported algorithm.
|
AccountCreator.Status |
setAsDefault(boolean setAsDefault)
Set the set_as_default property.
|
AccountCreator.UsernameStatus |
setDisplayName(java.lang.String displayName)
Set the display name.
|
AccountCreator.DomainStatus |
setDomain(java.lang.String domain)
Set the domain.
|
AccountCreator.EmailStatus |
setEmail(java.lang.String email)
Set the email.
|
AccountCreator.PasswordStatus |
setHa1(java.lang.String ha1)
Set the ha1.
|
AccountCreator.LanguageStatus |
setLanguage(java.lang.String lang)
Set the language to use in email or SMS if supported.
|
AccountCreator.PasswordStatus |
setPassword(java.lang.String password)
Set the password.
|
int |
setPhoneNumber(java.lang.String phoneNumber,
java.lang.String countryCode)
Set the phone number normalized.
|
void |
setPnParam(java.lang.String pnParam)
Set the pn_param.
|
void |
setPnPrid(java.lang.String pnPrid)
Set the pn_prid.
|
void |
setPnProvider(java.lang.String pnProvider)
Set the pn_provider.
|
void |
setProxyConfig(ProxyConfig cfg)
Assign a proxy config pointer to the LinphoneAccountCreator.
|
AccountCreator.Status |
setRoute(java.lang.String route)
Set the route.
|
void |
setToken(java.lang.String token)
Set the token.
|
AccountCreator.TransportStatus |
setTransport(TransportType transport)
Set Transport.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
AccountCreator.UsernameStatus |
setUsername(java.lang.String username)
Set the username.
|
java.lang.String |
toString() |
AccountCreator.Status |
updateAccount()
Send a request to update an account.
|
@Nullable java.lang.String getActivationCode()
AccountCreator
. AccountCreator.ActivationCodeStatus setActivationCode(@Nullable java.lang.String activationCode)
activationCode
- The activation code to set AccountCreator.ActivationCodeStatus.Ok
if everything is OK, or a specific@Nullable java.lang.String getAlgorithm()
AccountCreator
. AccountCreatorAlgoStatus setAlgorithm(@Nullable java.lang.String algorithm)
algorithm
- The algorithm to use AccountCreator.Status setAsDefault(boolean setAsDefault)
setAsDefault
- true for the created proxy config to be set as default inCore
, false otherwise AccountCreator.Status.RequestOk
if everything is OK, or a specific error@Nullable java.lang.String getDisplayName()
AccountCreator
. AccountCreator.UsernameStatus setDisplayName(@Nullable java.lang.String displayName)
displayName
- The display name to set AccountCreator.UsernameStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getDomain()
AccountCreator
. AccountCreator.DomainStatus setDomain(@Nullable java.lang.String domain)
domain
- The domain to set AccountCreator.DomainStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getEmail()
AccountCreator
. AccountCreator.EmailStatus setEmail(@Nullable java.lang.String email)
email
- The email to set AccountCreator.EmailStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getHa1()
AccountCreator
. AccountCreator.PasswordStatus setHa1(@Nullable java.lang.String ha1)
ha1
- The ha1 to set AccountCreator.PasswordStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getLanguage()
AccountCreator
. AccountCreator.LanguageStatus setLanguage(@Nullable java.lang.String lang)
lang
- The language to use AccountCreator.LanguageStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getPassword()
AccountCreator
. AccountCreator.PasswordStatus setPassword(@Nullable java.lang.String password)
password
- The password to set AccountCreator.PasswordStatus.Ok
if everything is OK, or specific(s) error(s)@Nullable java.lang.String getPhoneCountryCode()
AccountCreator
@Nullable java.lang.String getPhoneNumber()
AccountCreator
. void setPnParam(@NonNull java.lang.String pnParam)
pnParam
- The pn_param to set void setPnPrid(@NonNull java.lang.String pnPrid)
pnPrid
- The pn_prid to set void setPnProvider(@NonNull java.lang.String pnProvider)
pnProvider
- The pn_provider to set void setProxyConfig(@Nullable ProxyConfig cfg)
cfg
- The LinphoneProxyConfig to associate with the@Nullable java.lang.String getRoute()
AccountCreator
. AccountCreator.Status setRoute(@Nullable java.lang.String route)
route
- The route to set AccountCreator.Status.RequestOk
if everything is OK, or a specific errorboolean getSetAsDefault()
void setToken(@NonNull java.lang.String token)
token
- The pn_prid to set TransportType getTransport()
TransportType
of the creator. AccountCreator.TransportStatus setTransport(TransportType transport)
transport
- The TransportType
to set AccountCreator.TransportStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getUsername()
AccountCreator
. AccountCreator.UsernameStatus setUsername(@Nullable java.lang.String username)
username
- The username to set AccountCreator.UsernameStatus.Ok
if everything is OK, or a specific errorAccountCreator.Status activateAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status activateAlias()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status createAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
@Nullable ProxyConfig createProxyConfig()
ProxyConfig
object if successful, null otherwise. AccountCreator.Status isAccountActivated()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status isAccountExist()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status isAccountLinked()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status isAliasUsed()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status linkAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status loginLinphoneAccount()
AccountCreator.Status.RequestOk
if everything is OK, or a specific errorAccountCreator.Status recoverAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
void reset()
int setPhoneNumber(@Nullable java.lang.String phoneNumber, @Nullable java.lang.String countryCode)
phoneNumber
- The phone number to set countryCode
- Country code to associate phone number with AccountCreator.PhoneNumberStatus.Ok
if everything is OK, or specific(s)AccountCreator.Status updateAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
@NonNull AccountCreator create(@NonNull Core core)
core
- The Core
used for the XML-RPC communication AccountCreator
object. void addListener(AccountCreatorListener listener)
void removeListener(AccountCreatorListener listener)
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object