commonMain.s2.dsl.automate.S2Event.kt Maven / Gradle / Ivy
package s2.dsl.automate
import kotlin.js.JsExport
import kotlin.js.JsName
@JsExport
@JsName("S2Event")
interface S2Event : Evt, WithId {
override val id: ID
val type: STATE
}
@JsExport
@JsName("S2EventSuccess")
class S2EventSuccess(
@JsName("id")
val id: ID,
val type: COMMAND,
@JsName("from")
val from: STATE,
@JsName("to")
val to: STATE,
) : Evt
@JsExport
@JsName("S2EventError")
class S2EventError(
@JsName("id")
val id: ID,
val type: COMMAND,
@JsName("from")
val from: STATE,
@JsName("to")
val to: STATE,
val error: S2Error,
) : Evt