KtorSdaiAppApi

class KtorSdaiAppApi(val httpClient: HttpClient, val appBaseUrl: String, val reportBaseUrl: String) : SdaiAppApi(source)

Coordinates KtorSdaiAppApi behavior in the SDAI network layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, appBaseUrl: String, reportBaseUrl: String)
constructor(appBaseUrl: String, reportBaseUrl: String)

Creates a new SDAI component instance.

Types

Link copied to clipboard
private object Companion

Provides the companion object singleton used by the SDAI network layer.

Properties

Link copied to clipboard
private val appBaseUrl: String

Exposes the appBaseUrl value used by the SDAI network layer.

Link copied to clipboard
private val httpClient: HttpClient

Exposes the httpClient value used by the SDAI network layer.

Link copied to clipboard
private val reportBaseUrl: String

Exposes the reportBaseUrl value used by the SDAI network layer.

Functions

Link copied to clipboard

Loads SDAI data through fetchMediaPipeModels.

Link copied to clipboard
open suspend override fun fetchOnnxModels(): List<DownloadableModelResponse>

Loads SDAI data through fetchOnnxModels.

Link copied to clipboard
open suspend override fun fetchSupporters(): List<SupporterRaw>

Loads SDAI data through fetchSupporters.

Link copied to clipboard
open suspend override fun postReport(request: ReportRequest)

Executes the postReport step in the SDAI network layer.