X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Fdata%2FStory.java;h=9fd4c1495b882ccf8591489cb901137b01271418;hb=5c056aade2e020276e039f81acba7bcb2b12e87f;hp=aa5aecc25501d9a90377d1006d6bb180a257c045;hpb=2527107526aea628df09c3ad53432e9a5480fcd7;p=gofetch.git diff --git a/src/be/nikiroo/gofetch/data/Story.java b/src/be/nikiroo/gofetch/data/Story.java index aa5aecc..9fd4c14 100644 --- a/src/be/nikiroo/gofetch/data/Story.java +++ b/src/be/nikiroo/gofetch/data/Story.java @@ -1,6 +1,7 @@ package be.nikiroo.gofetch.data; import java.net.URL; +import java.util.List; import be.nikiroo.gofetch.support.BasicSupport; import be.nikiroo.gofetch.support.BasicSupport.Type; @@ -19,6 +20,9 @@ public class Story { private String urlExternal; private String content; + private String fullContent; + private List comments; + /** * Create a news story. * @@ -46,6 +50,9 @@ public class Story { this.urlInternal = urlInternal; this.urlExternal = urlExternal; this.content = content; + + // Defaults fullContent to content + this.fullContent = content; } public String getSelector() { @@ -93,4 +100,34 @@ public class Story { public String getContent() { return content; } + + /** + * @return the fullContent + */ + public String getFullContent() { + return fullContent; + } + + /** + * @param fullContent + * the fullContent to set + */ + public void setFullContent(String fullContent) { + this.fullContent = fullContent; + } + + /** + * @return the comments + */ + public List getComments() { + return comments; + } + + /** + * @param comments + * the comments to set + */ + public void setComments(List comments) { + this.comments = comments; + } } \ No newline at end of file