Success

data class Success<T> : ApiResult<T, Nothing>

Functions

Link copied to clipboard
fun getSuccessData(): T

Get the data from a Success result. Throws if this result is a Failure

Link copied to clipboard
fun getSuccessDataOrNull(): T?

Get the data from a Success result, or null if this result is a Failure

Link copied to clipboard
fun isSuccess(): Boolean

Is this result a Success

Properties

Link copied to clipboard
val data: T