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

commonMain.cccev.s2.framework.domain.command.FrameworkCreateCommand.kt Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
package cccev.s2.framework.domain.command

import cccev.s2.framework.domain.FrameworkEvent
import cccev.s2.framework.domain.FrameworkId
import cccev.s2.framework.domain.FrameworkInitCommand
import kotlin.js.JsExport
import kotlin.js.JsName
import kotlinx.serialization.Serializable

@JsExport
@JsName("FrameworkCreateCommandDTO")
interface FrameworkCreateCommandDTO: FrameworkInitCommand {
    val identifier: String?
    val name: String
}

@Serializable
data class FrameworkCreateCommand(
    override val identifier: String? = null,
    override val name: String
): FrameworkCreateCommandDTO

@JsExport
@JsName("FrameworkCreatedEventDTO")
interface FrameworkCreatedEventDTO: FrameworkEvent {
    override val id: FrameworkId
    val identifier: String?
    val name: String
}

@Serializable
data class FrameworkCreatedEvent(
    override val id: FrameworkId,
    override val identifier: String? = null,
    override val name: String
): FrameworkCreatedEventDTO




© 2015 - 2024 Weber Informatics LLC | Privacy Policy