diff --git a/src/main/java/cloudgene/mapred/server/exceptions/MessageWrapper.java b/src/main/java/cloudgene/mapred/server/exceptions/MessageWrapper.java new file mode 100644 index 00000000..4fdd7437 --- /dev/null +++ b/src/main/java/cloudgene/mapred/server/exceptions/MessageWrapper.java @@ -0,0 +1,32 @@ +package cloudgene.mapred.server.exceptions; + +import com.fasterxml.jackson.annotation.JsonClassDescription; + +@JsonClassDescription +public class MessageWrapper { + + private String message; + + private boolean success = false; + + public MessageWrapper(String message, boolean success) { + this.message = message; + this.success = success; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public void setSuccess(boolean success) { + this.success = success; + } + + public boolean isSuccess() { + return success; + } +} \ No newline at end of file