public interface ITodoRequest extends IHttpRequest
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Todo> callback)
Delete this item from the service
|
ITodoRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Todo |
get()
Gets the Todo from the service
|
void |
get(ICallback<? super Todo> callback)
Gets the Todo from the service
|
Todo |
patch(Todo sourceTodo)
Patches this Todo with a source
|
void |
patch(Todo sourceTodo,
ICallback<? super Todo> callback)
Patches this Todo with a source
|
Todo |
post(Todo newTodo)
Posts a Todo with a new object
|
void |
post(Todo newTodo,
ICallback<? super Todo> callback)
Posts a Todo with a new object
|
Todo |
put(Todo newTodo)
Posts a Todo with a new object
|
void |
put(Todo newTodo,
ICallback<? super Todo> callback)
Posts a Todo with a new object
|
ITodoRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodvoid get(ICallback<? super Todo> callback)
callback - the callback to be called after success or failureTodo get() throws ClientException
ClientException - this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<? super Todo> callback)
callback - the callback when the deletion action has completedvoid delete()
throws ClientException
ClientException - if there was an exception during the delete operationvoid patch(Todo sourceTodo, ICallback<? super Todo> callback)
sourceTodo - the source object with updatescallback - the callback to be called after success or failureTodo patch(Todo sourceTodo) throws ClientException
sourceTodo - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonvoid post(Todo newTodo, ICallback<? super Todo> callback)
newTodo - the new object to createcallback - the callback to be called after success or failureTodo post(Todo newTodo) throws ClientException
newTodo - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonvoid put(Todo newTodo, ICallback<? super Todo> callback)
newTodo - the object to create/updatecallback - the callback to be called after success or failureTodo put(Todo newTodo) throws ClientException
newTodo - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonITodoRequest select(java.lang.String value)
value - the select clauseITodoRequest expand(java.lang.String value)
value - the expand clause