package com.red.circle.console.app.dto.clienobject.game;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.enums.game.RedPacketEnum;
import com.red.circle.other.inner.model.dto.game.GameRedPacketProcessLogDTO;
import com.red.circle.other.inner.model.dto.live.RoomProfileDTO;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 红包发送记录.
 * </p>
 *
 * @author pengliang on 2022/7/8
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GameRedPacketCO implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 系统平台.
   */
  private String sysOrigin;

  /**
   * 红包类型.
   */
  private RedPacketEnum type;

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

  /**
   * 房间资料.
   */
  private RoomProfileDTO roomProfile;

  /**
   * 发送金额.
   */
  private BigDecimal amount;

  /**
   * 已领取金额.
   */
  private BigDecimal receivedAmount;

  /**
   * 发送数量.
   */
  private Integer quantity;

  /**
   * 状态.
   */
  private String status;

  /**
   * 领取用户.
   */
  private List<GameRedPacketReceiveUsersCO> receiveUsers;

  /**
   * 指定领取人用户(type是USER时).
   */
  private UserProfileDTO designatedReceiverUser;

  /**
   * 处理日志.
   */
  private List<GameRedPacketProcessLogDTO> logs;

  /**
   * 过期时间.
   */
  private Timestamp expiredTime;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 用户资料.
   */
  private UserProfileDTO userProfile;

}
