| Package | Description |
|---|---|
| com.microsoft.rest |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| 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)
Build a ServiceResponse instance from a REST call response and a
possible error.
|
ServiceResponse<T> |
ServiceResponseBuilder.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.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ServiceCall<T> |
ServiceCall.create(rx.Observable<ServiceResponse<T>> observable)
Creates a ServiceCall from an observable object.
|
static <T> ServiceCall<T> |
ServiceCall.create(rx.Observable<ServiceResponse<T>> observable,
ServiceCallback<T> callback)
Creates a ServiceCall from an observable object and a callback.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/