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

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

/**
 * 游戏幸运礼物抽奖.
 *
 * @author pengshigang on 2023/7/28
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class GameLuckyGiftBusinessEvent implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 房间ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long roomId;

  /**
   * 房间账号.
   */
  private String roomAccount;

  /**
   * 来源系统.
   */
  private String sysOrigin;

  /**
   * 礼物id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long giftId;

  /**
   * 选的礼物数量.
   */
  private Integer quantity;

  /**
   * 是否为连击赠送(true:是).
   */
  private Boolean checkCombo;

  /**
   * 连击礼物次数.
   */
  private Integer giftCombos;

  /**
   * 区域code.
   */
  private String regionCode;

  /**
   * 是否开启了连续亏钱模式.
   */
  private Boolean openComboLoss;

  /**
   * 系统设定连续亏钱次数.
   */
  private Integer sysComboLoss;

  /**
   * 是否开启了累计礼物模式.
   */
  private Boolean openGiftGiveTotal;

  /**
   * 系统设定累计礼物次数.
   */
  private Integer sysGiftGiveTotal;

  /**
   * 用户信息.
   */
  private List<GameLuckyGiftUser> users;

}
