package com.flexpoker.table.command.events; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.flexpoker.framework.event.BaseEvent; import com.flexpoker.table.command.framework.TableEvent; public class PotClosedEvent extends BaseEvent implements TableEvent { private final UUID gameId; private final UUID handId; private final UUID potId; @JsonCreator public PotClosedEvent(@JsonProperty(value = "aggregateId") UUID aggregateId, @JsonProperty(value = "version") int version, @JsonProperty(value = "gameId") UUID gameId, @JsonProperty(value = "handId") UUID handId, @JsonProperty(value = "potId") UUID potId) { super(aggregateId, version); this.gameId = gameId; this.handId = handId; this.potId = potId; } @Override public UUID getGameId() { return gameId; } public UUID getHandId() { return handId; } public UUID getPotId() { return potId; } }