ApiResult

A result from an API operation

sealed class ApiResult<T : Any>

Types

Error
Link copied to clipboard

An error that occurred while making an API call

data class Error(e: ApiException) : ApiResult<Nothing>
Success
Link copied to clipboard

A successful response from the API was received

data class Success<T : Any>(value: T) : ApiResult<T>

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

ApiResult
Link copied to clipboard
ApiResult
Link copied to clipboard