Companion

object Companion

Functions

executing
Link copied to clipboard
fun <T, P> executing(progress: P? = null, data: T? = null): Response<T, P>

Shortcut to create an executing response

fail
Link copied to clipboard
fun <T, P> fail(throwable: Throwable?): Response<T, P>

Shortcut to create a failed response

success
Link copied to clipboard
fun <T, P> success(data: T?): Response<T, P>

Shortcut to create a successful response