ApiResponseOperator
Author
skydoves (Jaewoong Eum)
ApiResponseOperator operates on an ApiResponse and return an ApiResponse. This allows you to handle success and error response instead of the com.skydoves.sandwich.onSuccess, com.skydoves.sandwich.onError, com.skydoves.sandwich.onException transformers. This operator can be applied globally as a singleton instance, or on each ApiResponse one by one.
Constructors
Functions
Link copied to clipboard
Operates the ApiResponse.Failure.Error for handling error responses if the request failed.
Link copied to clipboard
Operates the ApiResponse.Failure.Exception for handling exception responses if the request get an exception.
Link copied to clipboard
Operates the ApiResponse.Success for handling successful responses if the request succeeds.