All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.copperleaf.ballast.test.internal.vm.TestViewModel.kt Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
package com.copperleaf.ballast.test.internal.vm

import com.copperleaf.ballast.BallastViewModel
import com.copperleaf.ballast.internal.BallastViewModelImpl
import kotlinx.coroutines.CompletableDeferred

internal class TestViewModel internal constructor(
    internal val impl: BallastViewModelImpl, Events, State>
) : BallastViewModel, Events, State> by impl {

    override val type: String = "TestViewModel"

    sealed class Inputs {
        data class ProcessInput(
            val normalInput: BaseInputs,
            val processingStarted: CompletableDeferred,
        ) : Inputs()

        data class AwaitInput(
            val normalInput: BaseInputs,
            val processingFinished: CompletableDeferred,
        ) : Inputs()

        data class TestCompleted(
            val processingFinished: CompletableDeferred
        ) : Inputs()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy