Success

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

A model that represents a success response from the API.

In most cases, data is a string representation of a JSON object from the Forage API, for example:

if (response is ForageApiResponse.Success) {
response.data // { "ref": "abcde123", ... }
}

Constructors

Link copied to clipboard
constructor(data: T)

Properties

Link copied to clipboard
val data: T