package com.liquidnet.common.third.zxlnft.dto.nft;

import com.liquidnet.commons.lang.util.JsonUtils;
import lombok.Data;

import java.io.Serializable;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: FaceUrlByAddressReq
 * @Package com.liquidnet.common.third.zxlnft.dto.nft
 * @Copyright: LightNet @ Copyright (c) 2021
 * @date 2022/2/18 15:34
 */
@Data
public class Nft019FaceUrlByAddressResp implements Serializable {
    /**
     * 启动人脸核身的h5 url
     */
    private String h5Url;
    /**
     * 人脸核验请求的唯一标识,需要保存
     */
    private String faceId;

    private static final Nft019FaceUrlByAddressResp obj = new Nft019FaceUrlByAddressResp();
    public static Nft019FaceUrlByAddressResp getNew() {
        try {
            return (Nft019FaceUrlByAddressResp) obj.clone();
        } catch (CloneNotSupportedException e) {
            return new Nft019FaceUrlByAddressResp();
        }
    }

    @Override
    public String toString(){
        return JsonUtils.toJson(this);
    }
}
