| Package | Description |
|---|---|
| com.microsoft.rest |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.protocol |
The package contains classes that interfaces defining the behaviors
of the necessary components of a Rest Client.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceResponseWithHeaders<TBody,THeader>
An instance of this class holds a response object and a raw REST response.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceResponse<T> |
ServiceResponseBuilder.build(retrofit2.Response<okhttp3.ResponseBody> response) |
ServiceResponse<T> |
ServiceResponseBuilder.buildEmpty(retrofit2.Response<Void> response) |
ServiceResponse<T> |
ServiceResponse.withBody(T body)
Sets the response object.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ServiceFuture<T> |
ServiceFuture.fromResponse(rx.Observable<ServiceResponse<T>> observable)
Creates a ServiceCall from an observable object.
|
static <T> ServiceFuture<T> |
ServiceFuture.fromResponse(rx.Observable<ServiceResponse<T>> observable,
ServiceCallback<T> callback)
Creates a ServiceCall from an observable object and a callback.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceResponse<T> |
ResponseBuilder.build(retrofit2.Response<okhttp3.ResponseBody> response)
Build a ServiceResponse instance from a REST call response and a
possible error.
|
ServiceResponse<T> |
ResponseBuilder.buildEmpty(retrofit2.Response<Void> response)
Build a ServiceResponse instance from a REST call response and a
possible error, which does not have a response body.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/