// Path: app/src/main/java/com/bedrock/padder/helper/WindowHelper.java
// @Nullable
// public static String getStringFromId(String id, Context context) {
//     try {
//         Class res = R.string.class;
//         Field field = res.getField(id);
//         return context.getResources().getString(field.getInt(null));
//     } catch (Exception e) {
//         Log.e("getStringFromId", "Failure to get string from id [" + id + "]");
//         return null;
//     }
//     //from : https://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
// }
// 
// Path: app/src/main/java/com/bedrock/padder/helper/WindowHelper.java
// public static String getStringFromIdWithFallback(String id, Context context) {
//     try {
//         Class res = R.string.class;
//         Field field = res.getField(id);
//         return context.getResources().getString(field.getInt(null));
//     } catch (Exception e) {
//         Log.e("getStringFromId", "Failure to get string from id [" + id + "]");
//         return id;
//     }
//     //from : https://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
// }


import android.content.Context;
import static com.bedrock.padder.helper.WindowHelper.getStringFromId;
import static com.bedrock.padder.helper.WindowHelper.getStringFromIdWithFallback;
package com.bedrock.padder.model.about;



public class Detail {

    private String title;

    private Item[] items;

    public Detail (String title, Item[] items) {
        this.title = title;
        this.items = items;
    }

    public String getTitle() {
        return title;
    }

    public String getTitle(Context context) {
        return getStringFromIdWithFallback(getTitle(), context);
    }

    public String getTitle(String prefix, Context context) {
// Path: app/src/main/java/com/bedrock/padder/helper/WindowHelper.java
// @Nullable
// public static String getStringFromId(String id, Context context) {
//     try {
//         Class res = R.string.class;
//         Field field = res.getField(id);
//         return context.getResources().getString(field.getInt(null));
//     } catch (Exception e) {
//         Log.e("getStringFromId", "Failure to get string from id [" + id + "]");
//         return null;
//     }
//     //from : https://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
// }
// 
// Path: app/src/main/java/com/bedrock/padder/helper/WindowHelper.java
// public static String getStringFromIdWithFallback(String id, Context context) {
//     try {
//         Class res = R.string.class;
//         Field field = res.getField(id);
//         return context.getResources().getString(field.getInt(null));
//     } catch (Exception e) {
//         Log.e("getStringFromId", "Failure to get string from id [" + id + "]");
//         return id;
//     }
//     //from : https://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
// }


// Path: app/src/main/java/com/bedrock/padder/model/about/Detail.java
import android.content.Context;
import static com.bedrock.padder.helper.WindowHelper.getStringFromId;
import static com.bedrock.padder.helper.WindowHelper.getStringFromIdWithFallback;

package com.bedrock.padder.model.about;



public class Detail {

    private String title;

    private Item[] items;

    public Detail (String title, Item[] items) {
        this.title = title;
        this.items = items;
    }

    public String getTitle() {
        return title;
    }

    public String getTitle(Context context) {
        return getStringFromIdWithFallback(getTitle(), context);
    }

    public String getTitle(String prefix, Context context) {
        String res = getStringFromId(prefix, context);