Companion

object Companion

Functions

Link copied to clipboard
fun <T> error(errorMessage: String): SwitchboardResult<T>

Create a failed result with an error message

Link copied to clipboard
inline fun <T> fromJson(jsonResponse: String): SwitchboardResult<T>

Parse a JSON response from JNI into a typed result

Link copied to clipboard

Parse a simple success/error JSON response

Link copied to clipboard
fun <T> success(value: T): SwitchboardResult<T>

Create a successful result with a value