sippo-sdk / com.quobis.sippo.sipposdk.client.model / SippoService / Success

Success

class Success<out V : Any> : SippoService<V>

Successful result with value value.

Parameters

V - Type of the value.

Constructors

<init>

Success(value: V)

Successful result with value value.

Properties

value

val value: V

Functions

error

fun error(): Exception?

Returns the error associated. In case of Success, error will be null.

value

fun value(): V

Returns the value associated. In case of Failure, value will be null.