Response

sealed class Response<T>

Generic response wrapper for SDK operations.

This sealed class provides a consistent way to handle both successful and failed operations throughout the SDK. It can wrap any type of data.

Parameters

T

The type of data contained in a successful response.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Failure<T>(val exception: Exception) : Response<T>

Represents a failed operation with the exception that caused the failure.

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

Represents a successful operation with the resulting data.

Properties

Link copied to clipboard

Indicates whether this response represents a success.