ForageApiResponse

sealed class ForageApiResponse<out T>

A model that represents the possible types of responses from the Forage API.

Inheritors

Types

Link copied to clipboard
data class Failure(val errors: List<ForageError>) : ForageApiResponse<Nothing>

A model that represents a failure response from the API.

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

A model that represents a success response from the API.