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

com.valubio.aliyun.api.AliyunResponse Maven / Gradle / Ivy

The newest version!
package com.valubio.aliyun.api;

import com.valubio.taobao.api.internal.mapping.ApiField;

import java.io.Serializable;
import java.util.Map;

public abstract class AliyunResponse implements Serializable {

    private static final long serialVersionUID = 7294025168689095197L;

    @ApiField("Code")
    private String errorCode;

    @ApiField("Message")
    private String message;

    private String body;
    private Map params;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Map getParams() {
        return params;
    }

    public void setParams(Map params) {
        this.params = params;
    }

    public boolean isSuccess() {
        return this.errorCode == null;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy