ServiceResponse

sealed class ServiceResponse<R : ResponseInfo>

Types

Link copied to clipboard
data class Failure<R : ResponseInfo>(error: ErrorInfo) : ServiceResponse<R>
Link copied to clipboard
data class Success<R : ResponseInfo>(response: R) : ServiceResponse<R>

Functions

Link copied to clipboard
fun responseOrThrow(): R

Inheritors

Link copied to clipboard
Link copied to clipboard