// Path: app/src/main/java/ultimategdbot/Strings.java
// public final class Strings {
// 
//     public static final String GENERAL = "GeneralStrings";
//     public static final String GD = "GDStrings";
// 
//     private Strings() {
//         throw new AssertionError();
//     }
// }


import botrino.api.i18n.Translator;
import jdash.common.AccessPolicy;
import ultimategdbot.Strings;
package ultimategdbot.util;


public final class GDFormatter {

	private GDFormatter() {
	}
	
	public static String formatPolicy(Translator tr, AccessPolicy policy) {
        String str;
        switch (policy) {
            case NONE:
                str = "policy_none";
                break;
            case FRIENDS_ONLY:
                str = "policy_friends_only";
                break;
            case ALL:
                str = "policy_all";
                break;
            default:
                throw new AssertionError();
        }
// Path: app/src/main/java/ultimategdbot/Strings.java
// public final class Strings {
// 
//     public static final String GENERAL = "GeneralStrings";
//     public static final String GD = "GDStrings";
// 
//     private Strings() {
//         throw new AssertionError();
//     }
// }


// Path: app/src/main/java/ultimategdbot/util/GDFormatter.java
import botrino.api.i18n.Translator;
import jdash.common.AccessPolicy;
import ultimategdbot.Strings;

package ultimategdbot.util;


public final class GDFormatter {

	private GDFormatter() {
	}
	
	public static String formatPolicy(Translator tr, AccessPolicy policy) {
        String str;
        switch (policy) {
            case NONE:
                str = "policy_none";
                break;
            case FRIENDS_ONLY:
                str = "policy_friends_only";
                break;
            case ALL:
                str = "policy_all";
                break;
            default:
                throw new AssertionError();
        }
		return tr.translate(Strings.GD, str);