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

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 lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户礼物背包.
 * </p>
 *
 * @author pengliang
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserGiftBackpackCO extends ClientObject {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

  /**
   * 礼物使用限制.
   */
  private GiftBackpackLimitCO giftLimit;

  /**
   * 礼物配置.
   */
  private GiftConfigCO giftConfig;

}
