Initial import (partially)

This commit is contained in:
2013-11-24 12:13:27 +01:00
parent 2082b0bba6
commit 8681fe2548
27 changed files with 677 additions and 168 deletions

View File

@@ -6,17 +6,23 @@ package org.migor.shared;
*/
public enum StatusCode {
OK(0),
ERROR(1),
PERMISSION_DENIED(2);
OK(0, "ok"),
ERROR(1, "error"),
PERMISSION_DENIED(2, "permission denied");
private int code;
private String message;
private StatusCode(int code) {
private StatusCode(int code, String message) {
this.code = code;
this.message = message;
}
public int getCode() {
return code;
}
public String getMessage() {
return message;
}
}