ReportState

data class ReportState(val loading: Boolean = true, val error: ErrorState = ErrorState.None, val imageBase64: String = "", val text: String = "", val reason: ReportReason = ReportReason.Other, val reportSent: Boolean = false) : MviState(source)

Carries ReportState data through the SDAI presentation layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(loading: Boolean = true, error: ErrorState = ErrorState.None, imageBase64: String = "", text: String = "", reason: ReportReason = ReportReason.Other, reportSent: Boolean = false)

Properties

Link copied to clipboard

Exposes the error value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the imageBase64 value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the loading value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the reason value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the reportSent value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the text value used by the SDAI presentation layer.

Functions

Link copied to clipboard

Converts SDAI data with toContentState.