com.malinskiy.marathon.execution.device.DeviceEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Cross-platform test runner
package com.malinskiy.marathon.execution.device
import com.malinskiy.marathon.test.TestBatch
import kotlinx.coroutines.CompletableDeferred
sealed class DeviceEvent {
data class Execute(val batch: TestBatch) : DeviceEvent()
object Complete : DeviceEvent()
object Initialize : DeviceEvent()
object Terminate : DeviceEvent()
object WakeUp : DeviceEvent()
data class GetDeviceState(val deferred: CompletableDeferred) : DeviceEvent()
override fun toString(): String = "DeviceEvent.${this::class.java.simpleName}"
}