public final class ApiResponseConverter extends Object
Response to an ApiResponse.| Constructor and Description |
|---|
ApiResponseConverter()
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
convert(retrofit2.Response<okhttp3.ResponseBody> responseWrapper)
Converts a response wrapper to an API response domain instance.
|
public ApiResponse convert(retrofit2.Response<okhttp3.ResponseBody> responseWrapper) throws IOException
responseWrapper - the original wrapped response to convertIOException - if conversion failsCopyright © 2020. All rights reserved.