android-components / mozilla.components.service.pocket.net / PocketResponse

PocketResponse

sealed class PocketResponse<T> (source)

A response from the Pocket API: the subclasses determine the type of the result and contain usable data.

Types

Name Summary
Failure class Failure<T> : PocketResponse<T>
A failure response from the Pocket API.
Success data class Success<T> : PocketResponse<T>
A successful response from the Pocket API.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
Failure class Failure<T> : PocketResponse<T>
A failure response from the Pocket API.
Success data class Success<T> : PocketResponse<T>
A successful response from the Pocket API.