ApiResponseMergePolicy
Author
skydoves (Jaewoong Eum)
ApiResponseMergePolicy is a policy for merging response data depend on the success or not.
Entries
Link copied to clipboard
Content copied to clipboard
Regardless of the order, ignores failure responses in the responses. if there are three responses (success, success, failure) or (success, failure, success), the response will be the ApiResponse.Success that has a merged list of the data.
Link copied to clipboard
Content copied to clipboard
Regardless of the order, prefers failure responses in the responses. if there are three responses (success, success, failure) or (success, failure, success), the response will be the ApiResponse.Failure.Error or ApiResponse.Failure.Exception.