OperationSheetState

State for the operation picker/preview bottom sheet.

Emitted by NetworkMockViewModel.sheetState. Hidden means no sheet is shown; the other three variants mirror the discovery lifecycle of a single opened operation.

Inheritors

Types

Link copied to clipboard
data class Content(val operationUiModel: OperationUiModel, val responses: PersistentList<MockResponse>) : OperationSheetState

The opened operation's response variants were discovered successfully.

Link copied to clipboard
data class Error(val message: String) : OperationSheetState

Discovery failed or the operation configuration could not be found.

Link copied to clipboard

No operation is open — the sheet is not shown.

Link copied to clipboard

Response variant discovery is in progress for the opened operation.