This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a co...
If you think the Android project Reddit-Underground listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.mikedaguillo.reddit_underground;
//fromwww.java2s.com/**
* Created by Mike on 11/26/2014.
*
* Object that stores the relevant information that needs to be displayed from a reddit post
*
*/publicclass RedditListItem {
private String title; // title of the post
private String author; // author of the post
private String subreddit; // subreddit posted in
privateint numOfComments; // number of comments the post has
private String thumbnailSrc; // path to the image
privateboolean isNSFW;
public RedditListItem (String postTitle, String postAuthor, String postSubReddit, int postNumOfComments, String thumbnail, boolean nsfw) {
title = postTitle;
author = postAuthor;
subreddit = postSubReddit;
numOfComments = postNumOfComments;
thumbnailSrc = thumbnail;
isNSFW = nsfw;
}
public String getTitle() {
return title;
}
public String getAuthor() {
return author;
}
public String getSubreddit() {
return subreddit;
}
publicint getNumOfComments() {
return numOfComments;
}
public String getThumbnailSrc() { return thumbnailSrc; }
publicboolean getNSFW() { return isNSFW; }
}