LorasRepositoryImpl
internal class LorasRepositoryImpl(val rdsA1111: LorasDataSource.Remote.Automatic1111, val rdsSwarm: LorasDataSource.Remote.SwarmUi, val swarmSessionRemoteDataSource: SwarmUiModelsRemoteDataSource, val lds: LorasDataSource.Local, val preferenceManager: PreferenceManager, val sessionPreference: SessionPreference, val authorizationStore: AuthorizationStore) : LorasRepository(source)
Implements LorasRepository behavior in the SDAI data layer.
Author
Dmitriy Moroz
Constructors
Link copied to clipboard
constructor(rdsA1111: LorasDataSource.Remote.Automatic1111, rdsSwarm: LorasDataSource.Remote.SwarmUi, swarmSessionRemoteDataSource: SwarmUiModelsRemoteDataSource, lds: LorasDataSource.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 lds 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 rdsA1111 value used by the SDAI data layer.
Link copied to clipboard
Exposes the rdsSwarm value used by the SDAI data layer.
Link copied to clipboard
Exposes the sessionPreference value used by the SDAI data layer.
Link copied to clipboard
Exposes the swarmSessionRemoteDataSource value used by the SDAI data layer.
Functions
Link copied to clipboard
Loads SDAI data through fetchAndGetLoras.
Link copied to clipboard
Loads SDAI data through fetchLoras.
Link copied to clipboard
Loads SDAI data through fetchSwarmLoras.
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 getSessionId.