All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eleme.openapi.sdk.media.manage.PornFeedback Maven / Gradle / Ivy

There is a newer version: 1.30.71
Show newest version
package eleme.openapi.sdk.media.manage;

/**
 * Created by on 15/7/22.
 */
public class PornFeedback {

    private int type;                        //图片类型,0非黄图,1黄图, 必须
    private boolean wrong;                   //是否是鉴黄接口错误, 必须

    /**
     * 文件扫描时候的算法结果,当wrong==true时候必须
     */
    private Float score;
    /**
     * 文件扫描时候的requestId,当wrong==true时候必须
     */
    private String requestId;
    private GlobalFileResource file;         //文件,必须


    public GlobalFileResource getFile() {
        return file;
    }

    public void setFile(GlobalFileResource file) {
        this.file = file;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isWrong() {
        return wrong;
    }

    public void setWrong(boolean wrong) {
        this.wrong = wrong;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public PornFeedback() {
    }

    /**
     * 反馈错误
     *
     * @param file 文件
     * @param type 类型
     */
    public PornFeedback(GlobalFileResource file, int type) {
        this.file = file;
        this.type = type;
        this.wrong = false;
    }

    public PornFeedback(GlobalFileResource file, int type, String requestId) {
        this.file = file;
        this.type = type;
        this.wrong = true;
        this.score = 0.0f;
        this.requestId = requestId;
    }

    @Override
    public String toString() {
        return "PornFeedback{" +
                "file=" + file +
                ", type=" + type +
                ", score=" + score +
                ", wrong=" + wrong +
                ", requestId=" + requestId +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy