package com.kevoroid.andhackernews;

import java.util.ArrayList;

/**
 * Created by kevin on 6/3/17.
 */

public class TestResponse {

    public static final String mainStoriesIds = "[[14471931, 14474956, 14473377, 14474663, 14468818, 14474426, 14459536, 14473077, 14473886, 14472265]]";
    public static final String mainStoryItem = "{\n" +
            "\n" +
            "    \"by\": \"mpweiher\",\n" +
            "    \"descendants\": 9,\n" +
            "    \"id\": 14433687,\n" +
            "    \"kids\": [\n" +
            "        14435028,\n" +
            "        14435942,\n" +
            "        14434504,\n" +
            "        14434619\n" +
            "    ],\n" +
            "    \"score\": 81,\n" +
            "    \"time\": 1495963915,\n" +
            "    \"title\": \"Live Literate Programming [video]\",\n" +
            "    \"type\": \"story\",\n" +
            "    \"url\": \"https://www.youtube.com/watch?v=HW7sqMjTkI0&feature=youtu.be\"\n" +
            "\n" +
            "}";

    public static String convertToArray() {
        return mainStoriesIds.replace("[[", "[").replace("]]", "]");
    }
}
@@ -30,16 +30,76 @@
 rnews;%0A%0A
+import org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0A
 import j
@@ -884,16 +884,8 @@
 ming
- %5Bvideo%5D
 %5C%22,%5C

change to mock response