15 lines
399 B
Kotlin
15 lines
399 B
Kotlin
package eventDemo.app.notification
|
|
|
|
import eventDemo.configuration.UUIDSerializer
|
|
import eventDemo.libs.command.CommandId
|
|
import kotlinx.serialization.Serializable
|
|
import java.util.UUID
|
|
|
|
@Serializable
|
|
data class CommandSuccessNotification(
|
|
@Serializable(with = UUIDSerializer::class)
|
|
override val id: UUID = UUID.randomUUID(),
|
|
val commandId: CommandId,
|
|
) : Notification,
|
|
CommandNotification
|