org.brewchain.sdk.model.ChainResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cwvj Show documentation
Show all versions of cwvj Show documentation
Java sdk for Dapps interact with cwv blockchain node
The newest version!
package org.brewchain.sdk.model;
public class ChainResult {
/**
* 1成功,其他失败
*/
private int code;
private String message;
private Object data;
public ChainResult(int code, String message) {
this.code = code;
this.message = message;
}
public ChainResult(int code, String message, Object data) {
this.code = code;
this.message = message;
this.data = data;
}
public ChainResult(int code, Object data) {
this.code = code;
this.message = message;
this.data = data;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
@Override
public String toString() {
return "ChainResult{" +
"code=" + code +
", message='" + message + '\'' +
", data=" + data +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy