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

import com.red.circle.framework.dto.ClientObject;
import com.red.circle.other.inner.enums.task.CheckInEnum;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 签到信息.
 *
 * @author pengliang on 2020/8/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class CheckInCO extends ClientObject {

  private static final long serialVersionUID = 1L;

  /**
   * 签到类型.
   */
  private CheckInEnum type;

  /**
   * 连续天.
   */
  private Integer consecutiveDays;

  /**
   * 是否已打卡.
   */
  private Boolean clockedIn;

  public CheckInCO putNobleRewardQuantity(BigDecimal quantity) {
    putExtField("nobleRewardQuantity", quantity);
    return this;
  }

}
