RequestStatusReport

Data class that holds the information about the current status of the ongoing requests using this helper.

Functions

Link copied to clipboard
open override fun getErrorFor(type: Request.Type): RequestError?

Returns the error for the given request type.

Link copied to clipboard
open override fun getType(): Request.Type

Returns the current request type.

Link copied to clipboard
open override fun hasError(): Boolean

Convenience method to check if there are any requests that resulted in an error.

Link copied to clipboard
open override fun hasIdle(): Boolean

Convenience method to check if there are any idle requests.

Link copied to clipboard
open override fun hasRunning(): Boolean

Convenience method to check if there are any running requests.

Link copied to clipboard
open override fun hasSuccess(): Boolean

Convenience method to check if there are any requests that resulted in success.

Link copied to clipboard
open override fun toString(): String