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

com.qingxun.javasdkapi.request.QueryTransProgressRequest Maven / Gradle / Ivy

Go to download

openapi SDK for Java Copyright © 2023 杭州轻寻科技 All rights reserved. 版权所有 (C)杭州轻寻科技 http://open.qingxun.com

The newest version!
package com.qingxun.javasdkapi.request;

import java.util.TreeMap;

/**
 * 查询翻译进度请求参数
 */
public class QueryTransProgressRequest extends BaseRequest {

    private int tid;


    private QueryTransProgressRequest() {
        super();
    }

    public QueryTransProgressRequest(Builder builder) {

        if (builder.tid == null) {
            throw new NullPointerException("tid 字段为空");
        }
        this.tid = builder.tid;
    }

    @Override
    public TreeMap transToMap() {
        TreeMap map = new TreeMap();
        map.put("tid", this.tid);
        return map;
    }

    public static class Builder {

        private Integer tid;

        public Builder setTid(Integer tid) {
            this.tid = tid;
            return this;
        }

        public QueryTransProgressRequest builder() {
            return new QueryTransProgressRequest(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy