package com.red.circle.other.app.dto.clientobject.activity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 房间贡献活动.
 *
 * @author pengshigang on 2022/10/25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RoomContributionActivityCountCO extends ClientObject {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  String id;

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

  /**
   * 周贡献值.
   */
  BigDecimal contributionValue;

  /**
   * 时间.
   */
  Integer dateNumber;

  /**
   * 时间(true=已领取).
   */
  Boolean received;

  /**
   * 比例.
   */
  BigDecimal ratio;

  /**
   * 可提取金币数量.
   */
  BigDecimal balance;

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

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

}
