Ready

data class Ready(val transactionId: String, val workflow: WorkflowProgress, val action: StepAction, val lastStepOutput: StepOutput? = null) : StepResult

The session is at a stable point. The caller inspects action, renders any needed UI, then calls Session.next.

Constructors

Link copied to clipboard
constructor(transactionId: String, workflow: WorkflowProgress, action: StepAction, lastStepOutput: StepOutput? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val lastStepOutput: StepOutput?

Output of the step the backend just moved past (e.g. StepOutput.CardScan), delivered once. Only a Ready or a Finished carries one; it is null for steps with no host-facing output.

Link copied to clipboard
open override val transactionId: String
Link copied to clipboard
open override val workflow: WorkflowProgress

The latest workflow snapshot; null on a Failed or Finished that came before the backend sent one.