aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/enumerations
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/enumerations')
-rw-r--r--main/src/cgeo/geocaching/enumerations/StatusCode.java44
1 files changed, 19 insertions, 25 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/StatusCode.java b/main/src/cgeo/geocaching/enumerations/StatusCode.java
index 78dfb72..1a1f05d 100644
--- a/main/src/cgeo/geocaching/enumerations/StatusCode.java
+++ b/main/src/cgeo/geocaching/enumerations/StatusCode.java
@@ -6,36 +6,30 @@ import android.content.res.Resources;
public enum StatusCode {
- COMMUNICATION_NOT_STARTED(0, R.string.err_start),
- NO_ERROR(1, R.string.err_none),
- LOG_SAVED(2, R.string.info_log_saved),
- LOGIN_PARSE_ERROR(-1, R.string.err_parse),
- CONNECTION_FAILED(-2, R.string.err_server),
- NO_LOGIN_INFO_STORED(-3, R.string.err_login),
- UNKNOWN_ERROR(-4, R.string.err_unknown),
- COMMUNICATION_ERROR(-5, R.string.err_comm),
- WRONG_LOGIN_DATA(-6, R.string.err_wrong),
- UNAPPROVED_LICENSE(-7, R.string.err_license),
- UNPUBLISHED_CACHE(-8, R.string.err_unpublished),
- PREMIUM_ONLY(-9, R.string.err_premium_only),
- MAINTENANCE(-10, R.string.err_maintenance),
- LOG_POST_ERROR(1000, R.string.err_log_post_failed),
- NO_LOG_TEXT(1001, R.string.warn_log_text_fill),
- NO_DATA_FROM_SERVER(1002, R.string.err_log_failed_server),
- NOT_LOGGED_IN(-11, R.string.init_login_popup_failed);
-
- final private int error_code;
+ COMMUNICATION_NOT_STARTED(R.string.err_start),
+ NO_ERROR(R.string.err_none),
+ LOG_SAVED(R.string.info_log_saved),
+ LOGIN_PARSE_ERROR(R.string.err_parse),
+ CONNECTION_FAILED(R.string.err_server),
+ NO_LOGIN_INFO_STORED(R.string.err_login),
+ UNKNOWN_ERROR(R.string.err_unknown),
+ COMMUNICATION_ERROR(R.string.err_comm),
+ WRONG_LOGIN_DATA(R.string.err_wrong),
+ UNAPPROVED_LICENSE(R.string.err_license),
+ UNPUBLISHED_CACHE(R.string.err_unpublished),
+ PREMIUM_ONLY(R.string.err_premium_only),
+ MAINTENANCE(R.string.err_maintenance),
+ LOG_POST_ERROR(R.string.err_log_post_failed),
+ NO_LOG_TEXT(R.string.warn_log_text_fill),
+ NO_DATA_FROM_SERVER(R.string.err_log_failed_server),
+ NOT_LOGGED_IN(R.string.init_login_popup_failed);
+
final private int error_string;
- StatusCode(int error_code, int error_string) {
- this.error_code = error_code;
+ StatusCode(int error_string) {
this.error_string = error_string;
}
- public int getCode() {
- return error_code;
- }
-
public int getErrorString() {
return error_string;
}