package com.red.circle.other.app.common.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 lombok.Data;
import lombok.experimental.Accessors;

/**
 * 幸运礼物中整合基础参数模版.
 *
 * @author pengshigang on 2023/03/23
 */
@Data
@Accessors(chain = true)
public class GameLuckyGiftParamCmd implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 用户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 Integer giftsCount;

  /**
   * 获得用户连续点击亏钱次数.
   */
  private Integer comboLossCount;

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

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

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

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

  /**
   * 接受人id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long acceptUserId;

}
