Success

data class Success<out T>(val data: T) : TWSOutcome<T>

Represents a successful API response.

Parameters

data

The up-to-date data returned by the API.

Constructors

Link copied to clipboard
constructor(data: T)

Properties

Link copied to clipboard
open override val data: T

Functions

Link copied to clipboard
fun <A, B> TWSOutcome<A>.mapData(mapper: (A) -> B): TWSOutcome<B>

Map data of this outcome, while keeping the type.