Files
event-demo/src/main/kotlin/eventDemo/app/entity/GameId.kt
Fabrice Lecomte 51d857513c Create test for complete game
create notifications for reply the players
implement notifications on GameEventPlayerNotificationListener
add priority to the eventbus.subscribe()
improve JWT creation
update libs koin + ktor
remove output of GameCommandStream
improve logs
create a function disableShuffleDeck to disable the shuffle of the deck (for tests)
2025-04-14 23:39:36 +02:00

18 lines
412 B
Kotlin

package eventDemo.app.entity
import eventDemo.libs.event.AggregateId
import eventDemo.shared.GameIdSerializer
import kotlinx.serialization.Serializable
import java.util.UUID
/**
* An [AggregateId] for a game.
*/
@JvmInline
@Serializable(with = GameIdSerializer::class)
value class GameId(
override val id: UUID = UUID.randomUUID(),
) : AggregateId {
override fun toString(): String = id.toString()
}