public class RegisterTokenRequestExecutor extends RequestExecutor<java.lang.Void>
Constructor and Description |
---|
RegisterTokenRequestExecutor(NotificationsService notificationsService,
java.lang.String token) |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
execute()
Executes created request synchronously.
|
void |
execute(CloudCallback<java.lang.Void> callback)
Executes created request asynchronously and invokes callback with the result.
|
RegisterTokenRequestExecutor |
forSandbox(boolean sandbox) |
protected java.util.Map<java.lang.String,java.lang.String> |
params()
Composes the request's parameters in map.
|
protected retrofit2.Call<java.lang.Void> |
prepareCall()
Prepares a request to execute.
|
RegisterTokenRequestExecutor |
withContext(android.content.Context context) |
public RegisterTokenRequestExecutor(NotificationsService notificationsService, java.lang.String token)
public RegisterTokenRequestExecutor withContext(android.content.Context context)
public RegisterTokenRequestExecutor forSandbox(boolean sandbox)
public java.lang.Void execute() throws java.io.IOException, KontaktCloudException
RequestExecutor
execute
in class RequestExecutor<java.lang.Void>
java.io.IOException
- exceptionKontaktCloudException
- exceptionpublic void execute(CloudCallback<java.lang.Void> callback)
RequestExecutor
execute
in class RequestExecutor<java.lang.Void>
callback
- the callback object.protected retrofit2.Call<java.lang.Void> prepareCall()
RequestExecutor
prepareCall
in class RequestExecutor<java.lang.Void>
protected java.util.Map<java.lang.String,java.lang.String> params()
RequestExecutor
params
in class RequestExecutor<java.lang.Void>