You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sandwich exposes an interfaceApiSuccessModelMapper. The map parameter method should be named apiSuccessResponse instead of apiErrorResponse
packagecom.skydoves.sandwich/** * @author skydoves (Jaewoong Eum) * * A mapper interface for mapping [ApiResponse.Success] response as a custom [V] instance model. * * @see [ApiSuccessModelMapper](https://github.com/skydoves/sandwich#apierrormodelmapper)*/publicfun interfaceApiSuccessModelMapper<T, V> {
/** * maps the [ApiResponse.Success] to the [V] using the mapper. * * @param apiErrorResponse The [ApiResponse.Success] error response from the network request. * @return A custom [V] success response model.*/publicfunmap(apiErrorResponse:ApiResponse.Success<T>): V
}
Describe the solution you'd like:
Rename map parameter apiErrorResponse into apiSuccessResponse.
The text was updated successfully, but these errors were encountered:
Sandwich exposes an interface
ApiSuccessModelMapper
. The map parameter method should be namedapiSuccessResponse
instead ofapiErrorResponse
Describe the solution you'd like:
Rename map parameter
apiErrorResponse
intoapiSuccessResponse
.The text was updated successfully, but these errors were encountered: