@Immutable @LevelUpApi(contract=PUBLIC) public final class CarrierAccountsRequestFactory extends AbstractRequestFactory
| Constructor and Description |
|---|
CarrierAccountsRequestFactory(Context context,
AccessTokenRetriever retriever) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRequest |
buildGetCarrierAccountsRequest(long webServiceId) |
AbstractRequest |
buildPostCarrierAccountsRequest() |
AbstractRequest |
buildPutCarrierAccountsRequest(long webServiceId,
String carrier,
String mobileDeviceNumber) |
getAccessTokenRetriever, getContextpublic CarrierAccountsRequestFactory(Context context, AccessTokenRetriever retriever)
context - the Application context.retriever - the implementation of AccessTokenRetriever to use to get the
User's
AccessToken.@AccessTokenRequired public AbstractRequest buildPostCarrierAccountsRequest()
AbstractRequest which starts the registration process for carrier
accounts.@AccessTokenRequired public AbstractRequest buildGetCarrierAccountsRequest(long webServiceId)
webServiceId - The ID of the CarrierAccount to GET.AbstractRequest which inspects the current state of the registration
process for carrier accounts.@AccessTokenRequired public AbstractRequest buildPutCarrierAccountsRequest(long webServiceId, String carrier, String mobileDeviceNumber)
webServiceId - The ID of the CarrierAccount to PUT.carrier - The carrier value returned by the EVURL request.mobileDeviceNumber - The mobile device number returned by the EVURL request.AbstractRequest which updates the registration process for carrier
accounts.