RequestResultWithData

data class RequestResultWithData<E>

Information returned when a request completes. If no error is present, then the request was successful.

Functions

Link copied to clipboard
fun getResultOrThrow(): E

Properties

Link copied to clipboard
val error: RequestError? = null

If this is not null, then an error occurred and the request was not completed.

Link copied to clipboard
val isError: Boolean
Link copied to clipboard
val success: E? = null

If this is not null, then the request completed successfully.