diff --git a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPost.java b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPost.java index 7441fa3..a48fece 100644 --- a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPost.java +++ b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPost.java @@ -77,15 +77,16 @@ public abstract class RedditPost { * Main constructor for a Reddit post. * @param title post's title * @param quarantine is this post in quarantine? - * @param score - * @param postHint + * @param score post's score + * @param postHint * @param crosspostable * @param over18 * @param author * @param permalink * @param spoiler */ - public RedditPost(String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { + public RedditPost(String id, String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { + this.postId = id; this.title = title; this.quarantine = quarantine; this.score = score; diff --git a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostImage.java b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostImage.java index a2f238f..e09d729 100644 --- a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostImage.java +++ b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostImage.java @@ -22,4 +22,8 @@ package twitter_techsupportgore_bot.reddit_handler; */ public class RedditPostImage extends RedditPost { + public RedditPostImage(String id, String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { + super(id, title, quarantine, score, postHint, crosspostable, over18, author, permalink, spoiler); + } + } diff --git a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostLink.java b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostLink.java index dda4a9c..30c80e2 100644 --- a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostLink.java +++ b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostLink.java @@ -22,8 +22,8 @@ package twitter_techsupportgore_bot.reddit_handler; */ public class RedditPostLink extends RedditPost { - public RedditPostLink(String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { - super(title, quarantine, score, postHint, crosspostable, over18, author, permalink, spoiler); + public RedditPostLink(String id, String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { + super(id, title, quarantine, score, postHint, crosspostable, over18, author, permalink, spoiler); } - + } diff --git a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostText.java b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostText.java index 699eb88..0e3ffc3 100644 --- a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostText.java +++ b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostText.java @@ -21,5 +21,9 @@ package twitter_techsupportgore_bot.reddit_handler; * @author louis */ public class RedditPostText extends RedditPost { - + + public RedditPostText(String id, String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { + super(id, title, quarantine, score, postHint, crosspostable, over18, author, permalink, spoiler); + } + } diff --git a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostVideo.java b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostVideo.java index b8d64d6..38b30de 100644 --- a/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostVideo.java +++ b/twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditPostVideo.java @@ -22,8 +22,8 @@ package twitter_techsupportgore_bot.reddit_handler; */ public class RedditPostVideo extends RedditPost{ - public RedditPostVideo(String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { - super(title, quarantine, score, postHint, crosspostable, over18, author, permalink, spoiler); - } + public RedditPostVideo(String id, String title, boolean quarantine, double score, String postHint, boolean crosspostable, boolean over18, String author, String permalink, boolean spoiler) { + super(id, title, quarantine, score, postHint, crosspostable, over18, author, permalink, spoiler); + } }