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

Package com.quobis.sippo.sipposdk.client.model

Types

SippoService

sealed class SippoService<out V : Any>

A Sippo service.

Exceptions

SippoClientError

sealed class SippoClientError : Exception

Sippo client errors.

SippoResourceError

sealed class SippoResourceError : Exception

Resource errors.

Functions

failure

fun SippoService<*>.failure(f: (Exception) -> Unit): Unit

Calls the function f with a specific error when Either is failure.

success

fun <V : Any> SippoService<V>.success(f: (V) -> Unit): Unit

Calls the function f with a specific value when SippoService is successful.