ReportViewModel
class ReportViewModel(val itemId: Long, val dispatchersProvider: DispatchersProvider, val sendReportUseCase: SendReportUseCase, val getGenerationResultUseCase: GetGenerationResultUseCase, val getLastResultFromCacheUseCase: GetLastResultFromCacheUseCase, val router: ReportRouter, val buildInfoProvider: BuildInfoProvider, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<ReportState, ReportIntent, EmptyEffect> (source)
Coordinates ReportViewModel behavior in the SDAI presentation layer.
Author
Dmitriy Moroz
Constructors
Link copied to clipboard
constructor(itemId: Long, dispatchersProvider: DispatchersProvider, sendReportUseCase: SendReportUseCase, getGenerationResultUseCase: GetGenerationResultUseCase, getLastResultFromCacheUseCase: GetLastResultFromCacheUseCase, router: ReportRouter, buildInfoProvider: BuildInfoProvider, onError: (Throwable) -> Unit = {})
Properties
Link copied to clipboard
Exposes the buildInfoProvider value used by the SDAI presentation layer.
Link copied to clipboard
Link copied to clipboard
Exposes the dispatchersProvider value used by the SDAI presentation layer.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Exposes the getGenerationResultUseCase value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the getLastResultFromCacheUseCase value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the router value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the sendReportUseCase value used by the SDAI presentation layer.
Link copied to clipboard