package de.eightbitboy.hijacr.data.comic;

/**
 * Information about a comic.
 */
public class ComicData {
    /**
     * The comic's title.
     */
    private String title;

    /**
     * The comic's base URL.
     */
    private String baseUrl;

    /**
     * The comic's first page URL.
     */
    private String firstPageUrl;

    /**
     * The Jsoup query for the image URL.
     */
    private String imageQuery;

    /**
     * The Jsoup query for the URL to ne next comic site.
     */
    private String nextQuery;

    /**
     * The Jsoup query for the URL to the previous comic site.
     */
    private String previousQuery;

    public ComicData(String title, String baseUrl, String firstPageUrl, String imageQuery, String nextQuery, String previousQuery){
        this.title = title;
        this.baseUrl = baseUrl;
        this.firstPageUrl = firstPageUrl;
        this.imageQuery = imageQuery;
        this.nextQuery = nextQuery;
        this.previousQuery = previousQuery;
    }

    public String getTitle(){
        return this.title;
    }

    public String getBaseUrl(){
        return this.baseUrl;
    }

    public String getFirstPageUrl(){
        return this.firstPageUrl;
    }

    public String getImageQuery(){
        return this.imageQuery;
    }

    public String getNextQuery(){
        return this.nextQuery;
    }

    public String getPreviousQuery(){
        return this.previousQuery;
    }
}

@@ -195,19 +195,22 @@
 comic's 
-bas
+websit
 e URL.%0A 
@@ -635,24 +635,479 @@
 iousQuery;%0A%0A
+    /**%0A     * Should be true if the comic page URL ends with a countable integer.%0A     * Example: %22http://xkcd.com/1%22, %22http://xkcd.com/2%22, %22http://xkcd.com/3%22 ...%0A     */%0A    private boolean countable = false;%0A%0A    /**%0A     * The comic page base URL if the comic is countable. It does not contain the counter integer.%0A     * Example: for %22http://xkcd.com/1%22 the countableUrl should be %22http://xkcd.com/%22%0A     */%0A    private String countableUrl = null;%0A%0A
     public C
@@ -1224,16 +1224,17 @@
 usQuery)
+ 
 %7B%0A      
@@ -1446,32 +1446,372 @@
 usQuery;%0A    %7D%0A%0A
+    public ComicData(String title, String baseUrl, String firstPageUrl, String imageQuery, String nextQuery, String previousQuery, boolean countable, String countableUrl) %7B%0A        this(title, baseUrl, firstPageUrl, imageQuery, nextQuery, previousQuery);%0A        this.countable = countable;%0A        this.countableUrl = countableUrl;%0A    %7D%0A%0A
     public Strin
@@ -1822,16 +1822,17 @@
 tTitle()
+ 
 %7B%0A      
@@ -1885,24 +1885,25 @@
 getBaseUrl()
+ 
 %7B%0A        re
@@ -1963,16 +1963,17 @@
 ageUrl()
+ 
 %7B%0A      
@@ -2036,24 +2036,25 @@
 ImageQuery()
+ 
 %7B%0A        re
@@ -2110,24 +2110,25 @@
 tNextQuery()
+ 
 %7B%0A        re
@@ -2191,16 +2191,17 @@
 sQuery()
+ 
 %7B%0A      

Extend ComicData