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 PlayerFoldedEvent extends BaseEvent implements TableEvent {
private final UUID gameId;
private final UUID handId;
private final UUID playerId;
@JsonCreator
public PlayerFoldedEvent(@JsonProperty(value = "aggregateId") UUID aggregateId,
@JsonProperty(value = "version") int version,
@JsonProperty(value = "gameId") UUID gameId,
@JsonProperty(value = "handId") UUID handId,
@JsonProperty(value = "playerId") UUID playerId) {
super(aggregateId, version);
this.gameId = gameId;
this.handId = handId;
this.playerId = playerId;
}
@Override
public UUID getGameId() {
return gameId;
}
public UUID getHandId() {
return handId;
}
public UUID getPlayerId() {
return playerId;
}
}