package com.example.podcastplayer.dummy;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Helper class for providing sample content for user interfaces created by
 * Android template wizards.
 * <p>
 * TODO: Replace all uses of this class before publishing your app.
 */
public class DummyContent {

    /**
     * An array of sample (dummy) items.
     */
    public static List<DummyItem> ITEMS = new ArrayList<DummyItem>();

    /**
     * A map of sample (dummy) items, by ID.
     */
    public static Map<String, DummyItem> ITEM_MAP = new HashMap<String, DummyItem>();

    static {
        // Add 3 sample items.
        addItem(new DummyItem("1", "Item 1"));
        addItem(new DummyItem("2", "Item 2"));
        addItem(new DummyItem("3", "Item 3"));
    }

    private static void addItem(DummyItem item) {
        ITEMS.add(item);
        ITEM_MAP.put(item.id, item);
    }

    /**
     * A dummy item representing a piece of content.
     */
    public static class DummyItem {
        public String id;
        public String content;

        public DummyItem(String id, String content) {
            this.id = id;
            this.content = content;
        }

        @Override
        public String toString() {
            return content;
        }
    }
}

@@ -712,14 +712,77 @@
 %22, %22
-Item 1
+Bulletproof Monk%22));%0A        addItem(new DummyItem(%222%22, %22The 404 Show
 %22));
@@ -817,66 +817,275 @@
 em(%22
-2
+3
 %22, %22
-Item 2%22));%0A        addItem(new DummyItem(%223%22, %22Item 3
+The Fat-Burning Man show by Abel Someone%22));%0A        addItem(new DummyItem(%224%22, %22The RPG Academy%22));%0A        addItem(new DummyItem(%225%22, %22The Woodwhisperer%22));%0A        addItem(new DummyItem(%226%22, %22This week in tech%22));%0A        addItem(new DummyItem(%227%22, %22Wood Talk
 %22));

Add better dummy data