package com.red.circle.other.app.dto.clientobject.user.relation.friendcard;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户友谊关系卡.
 *
 * @author pengshigang
 * @since 2022-06-09
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserFriendCardCO extends ClientObject {

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

  /**
   * 友谊值.
   */
  private BigDecimal friendshipValue;

  /**
   * 友谊值-格式化.
   */
  private String strFriendshipValue;

  /**
   * 卡片类型.
   */
  private String cardType;

  /**
   * 购买价格.
   */
  private BigDecimal buyCardMoney;

  /**
   * 卡片图.
   */
  private String cardBack;

  /**
   * 建立关系天数.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long days;

  /**
   * 卡片等级
   */
  private Integer cardLevel;

}
