package com.red.circle.mq.business.model.event.game;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 投票游戏.
 *
 * @author pengshigang on 2022/01/07
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class GameRoomVoteEvent implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 游戏id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long gameId;

  /**
   * 游戏状态:true结束 false正常.
   */
  private Boolean gameOver;

  /**
   * 延迟秒钟.
   */
  private Long delaySecond;
}
