NetworkResult

sealed class NetworkResult

Describes the available results of a network request.

See also

Inheritors

Types

Link copied to clipboard
class Failure(val networkException: NetworkException) : NetworkResult

Failure indicates that the network request was unsuccessful for the reason given by the returned networkException

Link copied to clipboard
class Success(val httpResponse: HttpResponse) : NetworkResult

Success indicates a successful network request, returning the relevant HTTP response data.