StableDiffusionModelsRepositoryImpl

Implements StableDiffusionModelsRepository behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(remoteDataSource: StableDiffusionModelsDataSource.Remote, localDataSource: StableDiffusionModelsDataSource.Local, preferenceManager: PreferenceManager, authorizationStore: AuthorizationStore)

Properties

Link copied to clipboard

Exposes the authorizationStore value used by the SDAI data layer.

Link copied to clipboard

Exposes the localDataSource value used by the SDAI data layer.

Link copied to clipboard

Exposes the preferenceManager value used by the SDAI data layer.

Link copied to clipboard

Exposes the remoteDataSource value used by the SDAI data layer.

Functions

Link copied to clipboard
open suspend override fun fetchAndGetModels(): List<StableDiffusionModel>

Loads SDAI data through fetchAndGetModels.

Link copied to clipboard
open suspend override fun fetchModels()

Loads SDAI data through fetchModels.

Link copied to clipboard
open suspend override fun getModels(): List<StableDiffusionModel>

Loads SDAI data through getModels.