DownloadableModelRemoteDataSource

Coordinates DownloadableModelRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(api: SdaiAppApi, fileDownloader: DownloadableModelFileDownloader)

Properties

Link copied to clipboard
private val api: SdaiAppApi

Exposes the api value used by the SDAI data layer.

Link copied to clipboard

Exposes the fileDownloader value used by the SDAI data layer.

Functions

Link copied to clipboard
open override fun download(id: String, url: String): Flow<DownloadState>

Executes the download step in the SDAI data layer.

Link copied to clipboard
open suspend override fun fetch(): List<LocalAiModel>

Loads SDAI data through fetch.