package com.red.circle.other.app.dto.cmd.material;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.NotNull;
import java.util.Objects;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 背包内赠送道具.
 *
 * @author zongpubin on 2023/04/10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropsGiveAwayCmd extends AppExtCommand {

  /**
   * 道具id.
   *
   * @eo.required
   */
  @NotNull(message = "propsId required.")
  private Long propsId;

  /**
   * 接收用户id.
   */
  private Long acceptUserId;
  /**
   * 靓号account.
   */
  private String specialAccount;


  /**
   * 如果接受人不存
   */
  public boolean isGiveAway() {
    return Objects.isNull(acceptUserId);
  }  /**
   * 如果接受人不存
   */
  public boolean isSpecialId() {
      return this.propsId == 1909874056307343361L;
  }


}
