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

cn.hyperchain.sdk.response.filemgr.FileUploadResponse Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package cn.hyperchain.sdk.response.filemgr;

import cn.hyperchain.sdk.exception.RequestException;
import cn.hyperchain.sdk.response.PollingResponse;
import cn.hyperchain.sdk.response.ReceiptResponse;

public class FileUploadResponse extends PollingResponse {
    private String fileHash;

    public String getFileHash() {
        return fileHash;
    }

    public void setFileHash(String fileHash) {
        this.fileHash = fileHash;
    }

    /**
     * to String.
     *
     * @return string
     */
    public String toString() {
        return "FileUploadResponse{" +
                "result=" + getTxHash() +
                ", jsonrpc='" + jsonrpc + '\'' +
                ", id='" + id + '\'' +
                ", code=" + code +
                ", message='" + message + '\'' +
                ", namespace='" + namespace + '\'' +
                ", fileHash='" + fileHash + '\'' +
                '}';
    }

    public ReceiptResponse polling() throws RequestException {
        return super.polling(30,1000,1000);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy