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

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

The newest version!
package com.aliyun.api;

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

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

/**
 * aliyun sdk 相应信息。
 * 
 * @author lijie.ma
 * @since 1.0, May 19, 2014
 */
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 - 2025 Weber Informatics LLC | Privacy Policy