interface ResultCallback<in T>
onError
abstract fun onError(error: ClientError): Unit
onSuccess
abstract fun onSuccess(result: T): Unit
fromLambda
fun <T> fromLambda(onErrorFun: (ClientError) -> Unit, onSuccessFun: (T) -> Unit): ResultCallback<T>