KtorSwarmUiModelsRemoteDataSource

Coordinates KtorSwarmUiModelsRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Throws

when the delegated operation cannot complete.

Constructors

Link copied to clipboard
constructor(api: SwarmUiModelsApi)

Properties

Link copied to clipboard
private val api: SwarmUiModelsApi

Exposes the api value used by the SDAI data layer.

Functions

Link copied to clipboard
open suspend override fun fetchSwarmModels(baseUrl: String, sessionId: String, credentials: AuthorizationCredentials): List<SwarmUiModel>

Loads SDAI data through fetchSwarmModels.

Link copied to clipboard
open suspend override fun getNewSession(baseUrl: String, credentials: AuthorizationCredentials): String

Loads SDAI data through getNewSession.