package uk.org.ngo.squeezer.service;

public enum ServerString {
    ALBUM,
    BROWSE_NEW_MUSIC,
    SORT_ARTISTYEARALBUM,
    SORT_ARTISTALBUM,
    SORT_YEARALBUM,
    SORT_YEARARTISTALBUM,
    REPEAT_OFF,
    REPEAT_ONE,
    REPEAT_ALL,
    SHUFFLE_OFF,
    SHUFFLE_ON_SONGS,
    SHUFFLE_ON_ALBUMS,
    SWITCH_TO_EXTENDED_LIST,
    SWITCH_TO_GALLERY,
    ALBUM_DISPLAY_OPTIONS,
    SLEEP,
    SLEEP_CANCEL,
    X_MINUTES,
    SLEEPING_IN,
    SLEEP_AT_END_OF_SONG,
    VOLUME,
    ALARM,
    ALARM_ALARM_REPEAT,
    ALARM_ALARM_REPEAT_DESC,
    ALARM_SHORT_DAY_0,
    ALARM_SHORT_DAY_1,
    ALARM_SHORT_DAY_2,
    ALARM_SHORT_DAY_3,
    ALARM_SHORT_DAY_4,
    ALARM_SHORT_DAY_5,
    ALARM_SHORT_DAY_6,
    ALARM_VOLUME,
    ALARM_VOLUME_DESC,
    ALARM_ADD,
    ALARM_ADD_DESC,
    ALARM_SAVING,
    ALARM_DELETING,
    ALARM_ALL_ALARMS,
    ALARM_ALARMS_ENABLED_DESC,
    ALARM_FADE,
    SETUP_ALARM_TIMEOUT,
    SETUP_ALARM_TIMEOUT_DESC,
    SETUP_SNOOZE_MINUTES,
    SETUP_SNOOZE_MINUTES_DESC,
    MORE,
    ;

    private String localizedString;

    /**
     * @return The localized string or just the name of the token, if not yet fetched (unlikely).
     */
    public String getLocalizedString() {
        return localizedString != null ? localizedString : name();
    }

    /**
     * Set the localized string for this token, as fetched from the server.
     *
     * @param localizedString
     */
    public void setLocalizedString(String localizedString) {
        this.localizedString = localizedString;
    }

    public static String getAlarmShortDayText(int day) {
        return ServerString.values()[(ALARM_SHORT_DAY_0.ordinal() + day)].getLocalizedString();
    }
}

@@ -62,135 +62,8 @@
 g %7B%0A
-    ALBUM,%0A    BROWSE_NEW_MUSIC,%0A    SORT_ARTISTYEARALBUM,%0A    SORT_ARTISTALBUM,%0A    SORT_YEARALBUM,%0A    SORT_YEARARTISTALBUM,%0A
     
@@ -338,20 +338,8 @@
 NG,%0A
-    VOLUME,%0A
     
@@ -373,37 +373,8 @@
 AT,%0A
-    ALARM_ALARM_REPEAT_DESC,%0A
     
@@ -544,291 +544,38 @@
 ARM_
-VOLUME,%0A    ALARM_VOLUME_DESC,%0A    ALARM_ADD,%0A    ALARM_ADD_DESC,%0A    ALARM_SAVING,%0A    ALARM_DELETING,%0A    ALARM_ALL_ALARMS,%0A    ALARM_ALARMS_ENABLED_DESC,%0A    ALARM_FADE,%0A    SETUP_ALARM_TIMEOUT,%0A    SETUP_ALARM_TIMEOUT_DESC,%0A    SETUP_SNOOZE_MINUTES,%0A    SETUP_SNOOZE_MINUTES_DESC
+DELETING,%0A    ALARM_ALL_ALARMS
 ,%0A  

Remove unused server strings