ServerSetupIntentProcessor

internal class ServerSetupIntentProcessor(val router: ServerSetupRouter, val linksProvider: LinksProvider, val currentState: () -> ServerSetupState, val updateState: ((ServerSetupState) -> ServerSetupState) -> Unit, val emitEffect: (ServerSetupEffect) -> Unit, val localModelDownloadClickReducer: (ServerSetupState.LocalModel) -> Unit, val deleteLocalModel: (String) -> Unit, val download: (String, String) -> Unit, val validateAndConnectToServer: () -> Unit, val connectToServer: () -> Unit)(source)

Coordinates ServerSetupIntentProcessor behavior in the SDAI presentation layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(router: ServerSetupRouter, linksProvider: LinksProvider, currentState: () -> ServerSetupState, updateState: ((ServerSetupState) -> ServerSetupState) -> Unit, emitEffect: (ServerSetupEffect) -> Unit, localModelDownloadClickReducer: (ServerSetupState.LocalModel) -> Unit, deleteLocalModel: (String) -> Unit, download: (String, String) -> Unit, validateAndConnectToServer: () -> Unit, connectToServer: () -> Unit)

Properties

Link copied to clipboard
private val connectToServer: () -> Unit

Exposes the connectToServer value used by the SDAI presentation layer.

Link copied to clipboard
private val currentState: () -> ServerSetupState

Exposes the currentState value used by the SDAI presentation layer.

Link copied to clipboard
private val deleteLocalModel: (String) -> Unit

Exposes the deleteLocalModel value used by the SDAI presentation layer.

Link copied to clipboard
private val download: (String, String) -> Unit

Exposes the download value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the emitEffect value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the linksProvider value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the localModelDownloadClickReducer value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the router value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the updateState value used by the SDAI presentation layer.

Link copied to clipboard
private val validateAndConnectToServer: () -> Unit

Exposes the validateAndConnectToServer value used by the SDAI presentation layer.

Functions

Link copied to clipboard

Executes the process step in the SDAI presentation layer.