operator

fun <T, V : ApiResponseOperator<T>> ApiResponse<T>.operator(apiResponseOperator: V): ApiResponse<T>

Author

skydoves (Jaewoong Eum)

Operates on an ApiResponse and return an ApiResponse. This allows you to handle success and error response instead of the ApiResponse.onSuccess, ApiResponse.onError, ApiResponse.onException transformers.