SingleAPIResult

sealed class SingleAPIResult<out T, out P>

Result type of a singular return type from an API that can return a partial result.

Inheritors

Types

Link copied to clipboard
data class Partial<P>(val result: PartialResult<P>) : SingleAPIResult<Nothing, P>

Result is partial and returns the partial values of the expected type and an exception indicating the failure.

Link copied to clipboard
data class Success<T>(val result: T) : SingleAPIResult<T, Nothing>

Result is a success and returns the fully expected type.