Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package reddit;
- public class Comment {
- public String permalink;
- public String data;
- public String author;
- public String opid;
- public String subreddit;
- public String linkid;
- public String title;
- public String oppermalink;
- public int points;
- public Comment(String permalink, String data, String author, String OP, String sub, String title, String linkid) {
- super();
- this.permalink = permalink;
- this.data = data;
- this.author = author;
- this.opid = OP;
- this.linkid = linkid;
- this.title = title;
- }
- public Comment() {
- // TODO Auto-generated constructor stub
- }
- public String getLinkURL() {
- return oppermalink + linkid;
- }
- public boolean isCompleteComment() {
- return permalink != null && data != null && author != null;
- }
- @Override
- public String toString() {
- return "Comment [permalink=" + permalink + ", data=" + data
- + ", author=" + author + ", opid=" + opid + ", subreddit="
- + subreddit + ", linkid=" + linkid + ", title=" + title
- + ", oppermalink=" + oppermalink + ", points=" + points
- + ", getLinkURL()=" + getLinkURL() + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement