mirror of
https://github.com/Dansen999/migor.git
synced 2026-01-11 05:24:16 +00:00
Initial import (partially)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user