SwarmUiModelsRepositoryImpl
internal class SwarmUiModelsRepositoryImpl(val remoteDataSource: SwarmUiModelsRemoteDataSource, val localDataSource: SwarmUiModelsDataSource.Local, val preferenceManager: PreferenceManager, val sessionPreference: SessionPreference, val authorizationStore: AuthorizationStore) : SwarmUiModelsRepository(source)
Implements SwarmUiModelsRepository behavior in the SDAI data layer.
Author
Dmitriy Moroz
Constructors
Link copied to clipboard
constructor(remoteDataSource: SwarmUiModelsRemoteDataSource, localDataSource: SwarmUiModelsDataSource.Local, preferenceManager: PreferenceManager, sessionPreference: SessionPreference, 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.
Link copied to clipboard
Exposes the sessionPreference value used by the SDAI data layer.
Functions
Link copied to clipboard
Loads SDAI data through fetchAndGetModels.
Link copied to clipboard
Loads SDAI data through fetchModels.
Link copied to clipboard
Loads SDAI data through fetchRemoteModels.
Link copied to clipboard
private suspend fun forceRenewSession(baseUrl: String, credentials: AuthorizationCredentials): String
Executes the forceRenewSession step in the SDAI data layer.
Link copied to clipboard
Loads SDAI data through getModels.
Link copied to clipboard
Loads SDAI data through getSessionId.