AxpSuccessResult

data class AxpSuccessResult<T>(val value: T) : AxpResult<T>

Result type returned when an operation has succeeded.

Parameters

value

The value returned from the operation.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

Functions

Link copied to clipboard
open override fun onSuccess(lambda: (T) -> Unit)

If the result is a success, execute the lambda with the returned value.