package com.xuezhanmaster.game.domain; import java.time.Instant; import java.util.List; import java.util.UUID; public record ResponseActionWindow( String windowId, String gameId, String triggerEventType, int sourceSeatNo, String triggerTile, List seatCandidates, Instant createdAt ) { public static ResponseActionWindow create( String gameId, String triggerEventType, int sourceSeatNo, String triggerTile, List seatCandidates ) { return new ResponseActionWindow( UUID.randomUUID().toString(), gameId, triggerEventType, sourceSeatNo, triggerTile, List.copyOf(seatCandidates), Instant.now() ); } }