Fix download order and comments/content storing
[gofetch.git] / src / be / nikiroo / gofetch / data / Story.java
index aa5aecc25501d9a90377d1006d6bb180a257c045..9fd4c1495b882ccf8591489cb901137b01271418 100644 (file)
@@ -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<Comment> 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<Comment> getComments() {
+               return comments;
+       }
+
+       /**
+        * @param comments
+        *            the comments to set
+        */
+       public void setComments(List<Comment> comments) {
+               this.comments = comments;
+       }
 }
\ No newline at end of file