Skip to content

Instantly share code, notes, and snippets.

@hbb20
Forked from yashbmewada/Post.java
Created February 28, 2018 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbb20/b71165e14d89504015efa39d44e8500a to your computer and use it in GitHub Desktop.
Save hbb20/b71165e14d89504015efa39d44e8500a to your computer and use it in GitHub Desktop.
Post model for Android Workshop
public class Post {
String title;
String author;
String body;
public Post(String title, String author, String body) {
this.title = title;
this.author = author;
this.body = body;
}
public static List<Post> getPostList(){
List<Post> resultList = new ArrayList<>();
resultList.add(new Post("Chrome will start blocking ads on February 15","EMIL PROTALINSKI","In June, Google revealed that Chrome will stop showing all ads (including those owned or served by Google) on websites that display non-compliant ads “starting in early 2018.” Now the company has committed to a date: Chrome’s built-in ad-blocker will start working on February 15, 2018."));
resultList.add(new Post("Look at the guy on the right side of the stage","Baked_anne_frink","People often misuse the word chivalry. I looked up the code of chivalry and there's only one part in there about respecting women, the rest of it is medieval battle etiquette.\n" +
"\n" +
"A week ago I didn't hold the door open for a lady and she said:\n" +
"\n" +
"\"I guess chivalry is dead\".......\n" +
"\n" +
"So I challenged her to physical combat. Turns out I'm the better jouster... Chivalry is alive.\n" +
"\n" +
"But that woman is dead.\"\n" +
"\n"));
resultList.add(new Post("Right before a brutal transfer from homeschool to public school circa 2007","theflyingskunk","Dude I was homeschooled from 3rd to 6th grade and went back to public school for 7th on. I remember being so nervous I woke up in the middle of the night and barfed. I went to homeroom and just sat next to the prettiest girl in there, and after I heard her tell her friends she had to sit next to some big freak. Hell of a first day. I feel your pain."));
resultList.add(new Post("If I wanted notifications, I would have allowed them. Stop asking every few days!","thanksfforthefish","Trying to make money is what happened to both. Imgur had a huge user base but no profit, so it created a community to make it easer to monetize through data. Same thing is happening with Reddit, they're slowly transforming it into more of a social media and are gathering more data to help with monetisation"));
resultList.add(new Post("every single time","feoohh2o","Hello, and welcome to /r/PoliticalHumor! Glad to have you. Please be sure to read the rules:\n" +
"\n" +
"Comments must be civil! Unruly threads may be locked and uncivil users may be banned. No personal attacks or slurs allowed!\n" +
"We're trusting you to be respectful to your fellow user while in /r/PoliticalHumor, so please don't let us down. We believe in you!\n" +
"\n" +
"Don't want to see /r/PoliticalHumor content any more? No problem! Use RES, the /all filter, or your mobile app preferences."));
resultList.add(new Post("The Life Antarctic with Alex Honnold","mugwortlemon","Read \"The Ascent of Rum Doodle\" by W.E. Bowman. It's also a spoof on the intrepid explorer genre and probably as close as a book will ever come to The Life Aquatic. If you get like the humor you will find it absolutely freaking hilarious, if not you will be a bit baffled and bored."));
resultList.add(new Post("Chrome will start blocking ads on February 15","EMIL PROTALINSKI","In June, Google revealed that Chrome will stop showing all ads (including those owned or served by Google) on websites that display non-compliant ads “starting in early 2018.” Now the company has committed to a date: Chrome’s built-in ad-blocker will start working on February 15, 2018."));
resultList.add(new Post("Look at the guy on the right side of the stage","Baked_anne_frink","People often misuse the word chivalry. I looked up the code of chivalry and there's only one part in there about respecting women, the rest of it is medieval battle etiquette.\n" +
"\n" +
"A week ago I didn't hold the door open for a lady and she said:\n" +
"\n" +
"\"I guess chivalry is dead\".......\n" +
"\n" +
"So I challenged her to physical combat. Turns out I'm the better jouster... Chivalry is alive.\n" +
"\n" +
"But that woman is dead.\"\n" +
"\n"));
resultList.add(new Post("Right before a brutal transfer from homeschool to public school circa 2007","theflyingskunk","Dude I was homeschooled from 3rd to 6th grade and went back to public school for 7th on. I remember being so nervous I woke up in the middle of the night and barfed. I went to homeroom and just sat next to the prettiest girl in there, and after I heard her tell her friends she had to sit next to some big freak. Hell of a first day. I feel your pain."));
resultList.add(new Post("If I wanted notifications, I would have allowed them. Stop asking every few days!","thanksfforthefish","Trying to make money is what happened to both. Imgur had a huge user base but no profit, so it created a community to make it easer to monetize through data. Same thing is happening with Reddit, they're slowly transforming it into more of a social media and are gathering more data to help with monetisation"));
resultList.add(new Post("every single time","feoohh2o","Hello, and welcome to /r/PoliticalHumor! Glad to have you. Please be sure to read the rules:\n" +
"\n" +
"Comments must be civil! Unruly threads may be locked and uncivil users may be banned. No personal attacks or slurs allowed!\n" +
"We're trusting you to be respectful to your fellow user while in /r/PoliticalHumor, so please don't let us down. We believe in you!\n" +
"\n" +
"Don't want to see /r/PoliticalHumor content any more? No problem! Use RES, the /all filter, or your mobile app preferences."));
resultList.add(new Post("The Life Antarctic with Alex Honnold","mugwortlemon","Read \"The Ascent of Rum Doodle\" by W.E. Bowman. It's also a spoof on the intrepid explorer genre and probably as close as a book will ever come to The Life Aquatic. If you get like the humor you will find it absolutely freaking hilarious, if not you will be a bit baffled and bored."));
resultList.add(new Post("Chrome will start blocking ads on February 15","EMIL PROTALINSKI","In June, Google revealed that Chrome will stop showing all ads (including those owned or served by Google) on websites that display non-compliant ads “starting in early 2018.” Now the company has committed to a date: Chrome’s built-in ad-blocker will start working on February 15, 2018."));
resultList.add(new Post("Look at the guy on the right side of the stage","Baked_anne_frink","People often misuse the word chivalry. I looked up the code of chivalry and there's only one part in there about respecting women, the rest of it is medieval battle etiquette.\n" +
"\n" +
"A week ago I didn't hold the door open for a lady and she said:\n" +
"\n" +
"\"I guess chivalry is dead\".......\n" +
"\n" +
"So I challenged her to physical combat. Turns out I'm the better jouster... Chivalry is alive.\n" +
"\n" +
"But that woman is dead.\"\n" +
"\n"));
resultList.add(new Post("Right before a brutal transfer from homeschool to public school circa 2007","theflyingskunk","Dude I was homeschooled from 3rd to 6th grade and went back to public school for 7th on. I remember being so nervous I woke up in the middle of the night and barfed. I went to homeroom and just sat next to the prettiest girl in there, and after I heard her tell her friends she had to sit next to some big freak. Hell of a first day. I feel your pain."));
resultList.add(new Post("If I wanted notifications, I would have allowed them. Stop asking every few days!","thanksfforthefish","Trying to make money is what happened to both. Imgur had a huge user base but no profit, so it created a community to make it easer to monetize through data. Same thing is happening with Reddit, they're slowly transforming it into more of a social media and are gathering more data to help with monetisation"));
resultList.add(new Post("every single time","feoohh2o","Hello, and welcome to /r/PoliticalHumor! Glad to have you. Please be sure to read the rules:\n" +
"\n" +
"Comments must be civil! Unruly threads may be locked and uncivil users may be banned. No personal attacks or slurs allowed!\n" +
"We're trusting you to be respectful to your fellow user while in /r/PoliticalHumor, so please don't let us down. We believe in you!\n" +
"\n" +
"Don't want to see /r/PoliticalHumor content any more? No problem! Use RES, the /all filter, or your mobile app preferences."));
resultList.add(new Post("The Life Antarctic with Alex Honnold","mugwortlemon","Read \"The Ascent of Rum Doodle\" by W.E. Bowman. It's also a spoof on the intrepid explorer genre and probably as close as a book will ever come to The Life Aquatic. If you get like the humor you will find it absolutely freaking hilarious, if not you will be a bit baffled and bored."));
resultList.add(new Post("Chrome will start blocking ads on February 15","EMIL PROTALINSKI","In June, Google revealed that Chrome will stop showing all ads (including those owned or served by Google) on websites that display non-compliant ads “starting in early 2018.” Now the company has committed to a date: Chrome’s built-in ad-blocker will start working on February 15, 2018."));
resultList.add(new Post("Look at the guy on the right side of the stage","Baked_anne_frink","People often misuse the word chivalry. I looked up the code of chivalry and there's only one part in there about respecting women, the rest of it is medieval battle etiquette.\n" +
"\n" +
"A week ago I didn't hold the door open for a lady and she said:\n" +
"\n" +
"\"I guess chivalry is dead\".......\n" +
"\n" +
"So I challenged her to physical combat. Turns out I'm the better jouster... Chivalry is alive.\n" +
"\n" +
"But that woman is dead.\"\n" +
"\n"));
resultList.add(new Post("Right before a brutal transfer from homeschool to public school circa 2007","theflyingskunk","Dude I was homeschooled from 3rd to 6th grade and went back to public school for 7th on. I remember being so nervous I woke up in the middle of the night and barfed. I went to homeroom and just sat next to the prettiest girl in there, and after I heard her tell her friends she had to sit next to some big freak. Hell of a first day. I feel your pain."));
resultList.add(new Post("If I wanted notifications, I would have allowed them. Stop asking every few days!","thanksfforthefish","Trying to make money is what happened to both. Imgur had a huge user base but no profit, so it created a community to make it easer to monetize through data. Same thing is happening with Reddit, they're slowly transforming it into more of a social media and are gathering more data to help with monetisation"));
resultList.add(new Post("every single time","feoohh2o","Hello, and welcome to /r/PoliticalHumor! Glad to have you. Please be sure to read the rules:\n" +
"\n" +
"Comments must be civil! Unruly threads may be locked and uncivil users may be banned. No personal attacks or slurs allowed!\n" +
"We're trusting you to be respectful to your fellow user while in /r/PoliticalHumor, so please don't let us down. We believe in you!\n" +
"\n" +
"Don't want to see /r/PoliticalHumor content any more? No problem! Use RES, the /all filter, or your mobile app preferences."));
resultList.add(new Post("The Life Antarctic with Alex Honnold","mugwortlemon","Read \"The Ascent of Rum Doodle\" by W.E. Bowman. It's also a spoof on the intrepid explorer genre and probably as close as a book will ever come to The Life Aquatic. If you get like the humor you will find it absolutely freaking hilarious, if not you will be a bit baffled and bored."));
resultList.add(new Post("Chrome will start blocking ads on February 15","EMIL PROTALINSKI","In June, Google revealed that Chrome will stop showing all ads (including those owned or served by Google) on websites that display non-compliant ads “starting in early 2018.” Now the company has committed to a date: Chrome’s built-in ad-blocker will start working on February 15, 2018."));
resultList.add(new Post("Look at the guy on the right side of the stage","Baked_anne_frink","People often misuse the word chivalry. I looked up the code of chivalry and there's only one part in there about respecting women, the rest of it is medieval battle etiquette.\n" +
"\n" +
"A week ago I didn't hold the door open for a lady and she said:\n" +
"\n" +
"\"I guess chivalry is dead\".......\n" +
"\n" +
"So I challenged her to physical combat. Turns out I'm the better jouster... Chivalry is alive.\n" +
"\n" +
"But that woman is dead.\"\n" +
"\n"));
resultList.add(new Post("Right before a brutal transfer from homeschool to public school circa 2007","theflyingskunk","Dude I was homeschooled from 3rd to 6th grade and went back to public school for 7th on. I remember being so nervous I woke up in the middle of the night and barfed. I went to homeroom and just sat next to the prettiest girl in there, and after I heard her tell her friends she had to sit next to some big freak. Hell of a first day. I feel your pain."));
resultList.add(new Post("If I wanted notifications, I would have allowed them. Stop asking every few days!","thanksfforthefish","Trying to make money is what happened to both. Imgur had a huge user base but no profit, so it created a community to make it easer to monetize through data. Same thing is happening with Reddit, they're slowly transforming it into more of a social media and are gathering more data to help with monetisation"));
resultList.add(new Post("every single time","feoohh2o","Hello, and welcome to /r/PoliticalHumor! Glad to have you. Please be sure to read the rules:\n" +
"\n" +
"Comments must be civil! Unruly threads may be locked and uncivil users may be banned. No personal attacks or slurs allowed!\n" +
"We're trusting you to be respectful to your fellow user while in /r/PoliticalHumor, so please don't let us down. We believe in you!\n" +
"\n" +
"Don't want to see /r/PoliticalHumor content any more? No problem! Use RES, the /all filter, or your mobile app preferences."));
resultList.add(new Post("The Life Antarctic with Alex Honnold","mugwortlemon","Read \"The Ascent of Rum Doodle\" by W.E. Bowman. It's also a spoof on the intrepid explorer genre and probably as close as a book will ever come to The Life Aquatic. If you get like the humor you will find it absolutely freaking hilarious, if not you will be a bit baffled and bored."));
resultList.add(new Post("Chrome will start blocking ads on February 15","EMIL PROTALINSKI","In June, Google revealed that Chrome will stop showing all ads (including those owned or served by Google) on websites that display non-compliant ads “starting in early 2018.” Now the company has committed to a date: Chrome’s built-in ad-blocker will start working on February 15, 2018."));
resultList.add(new Post("Look at the guy on the right side of the stage","Baked_anne_frink","People often misuse the word chivalry. I looked up the code of chivalry and there's only one part in there about respecting women, the rest of it is medieval battle etiquette.\n" +
"\n" +
"A week ago I didn't hold the door open for a lady and she said:\n" +
"\n" +
"\"I guess chivalry is dead\".......\n" +
"\n" +
"So I challenged her to physical combat. Turns out I'm the better jouster... Chivalry is alive.\n" +
"\n" +
"But that woman is dead.\"\n" +
"\n"));
resultList.add(new Post("Right before a brutal transfer from homeschool to public school circa 2007","theflyingskunk","Dude I was homeschooled from 3rd to 6th grade and went back to public school for 7th on. I remember being so nervous I woke up in the middle of the night and barfed. I went to homeroom and just sat next to the prettiest girl in there, and after I heard her tell her friends she had to sit next to some big freak. Hell of a first day. I feel your pain."));
resultList.add(new Post("If I wanted notifications, I would have allowed them. Stop asking every few days!","thanksfforthefish","Trying to make money is what happened to both. Imgur had a huge user base but no profit, so it created a community to make it easer to monetize through data. Same thing is happening with Reddit, they're slowly transforming it into more of a social media and are gathering more data to help with monetisation"));
resultList.add(new Post("every single time","feoohh2o","Hello, and welcome to /r/PoliticalHumor! Glad to have you. Please be sure to read the rules:\n" +
"\n" +
"Comments must be civil! Unruly threads may be locked and uncivil users may be banned. No personal attacks or slurs allowed!\n" +
"We're trusting you to be respectful to your fellow user while in /r/PoliticalHumor, so please don't let us down. We believe in you!\n" +
"\n" +
"Don't want to see /r/PoliticalHumor content any more? No problem! Use RES, the /all filter, or your mobile app preferences."));
resultList.add(new Post("The Life Antarctic with Alex Honnold","mugwortlemon","Read \"The Ascent of Rum Doodle\" by W.E. Bowman. It's also a spoof on the intrepid explorer genre and probably as close as a book will ever come to The Life Aquatic. If you get like the humor you will find it absolutely freaking hilarious, if not you will be a bit baffled and bored."));
return resultList;
}
public String getTitle() {
return title;
}
public String getAuthor() {
return author;
}
public String getBody() {
return body;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment