DownloadState

sealed interface DownloadState(source)

Defines the DownloadState contract for the SDAI domain layer.

Author

Dmitriy Moroz

Inheritors

Types

Link copied to clipboard
data class Complete(val filePath: String) : DownloadState

Carries Complete data through the SDAI domain layer.

Link copied to clipboard
data class Downloading(val percent: Int = 0) : DownloadState

Carries Downloading data through the SDAI domain layer.

Link copied to clipboard
data class Error(val error: Throwable) : DownloadState

Carries Error data through the SDAI domain layer.

Link copied to clipboard
data object Unknown : DownloadState

Provides the Unknown singleton used by the SDAI domain layer.