BaseRequestPhase

abstract class BaseRequestPhase<R : CPGRequestResource<*>>(repository: Repository, r: R, phaseName: Phase.PhaseName) : Phase.RequestPhase<R>

Encapsulates the state transitions of a Phase.RequestPhase.

Inheritors

Constructors

Link copied to clipboard
constructor(repository: Repository, r: R, phaseName: Phase.PhaseName)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun enteredInError(reason: String?): Result<Unit>
Link copied to clipboard
open override fun getPhaseName(): Phase.PhaseName
Link copied to clipboard
open override fun getRequestResource(): R
Link copied to clipboard
open override fun reject(reason: String?): Result<Unit>
Link copied to clipboard
open override fun resume(): Result<Unit>
Link copied to clipboard
open override fun suspend(reason: String?): Result<Unit>
Link copied to clipboard
open override fun update(r: R): Result<Unit>