devutility.internal.models.OperationResult Maven / Gradle / Ivy
package devutility.internal.models;
public class OperationResult {
private boolean succeeded;
private StringBuffer message;
private Object data;
private int code;
public OperationResult() {
succeeded = true;
message = new StringBuffer("");
}
public void append(String message) {
this.message.append(message);
}
public void appendError(String message) {
setSucceeded(false);
append(message);
}
public void setErrorMessage(String message) {
appendError(message);
}
public boolean isSucceeded() {
return succeeded;
}
public void setSucceeded(boolean succeeded) {
this.succeeded = succeeded;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public StringBuffer getMessage() {
return message;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy