Result

sealed class Result<out T>

A sealed class representing the result of an operation, which can either be a success or an error.

Parameters

T

The type of data contained in the result in case of a success. Typically, this will be a subtype of SdkSuccessAnswer.

Inheritors

Types

Link copied to clipboard
data class Error(val message: String, val code: String) : Result<Nothing>

Represents an error result of an operation.

Link copied to clipboard
data class Success<out T>(val data: T) : Result<T>

Represents a successful result of an operation.