Skip to content

Instantly share code, notes, and snippets.

@coding-catie
Created September 24, 2018 23:05
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 coding-catie/94b119600ba8091ccd5409bfd531ef0f to your computer and use it in GitHub Desktop.
Save coding-catie/94b119600ba8091ccd5409bfd531ef0f to your computer and use it in GitHub Desktop.
Mayat - News App MyNews
package com.example.android.mynewsappone;
public class MyNews {
private String mArticleTitle;
private String mArticleSectionName;
private String mArticlePubdate;
private String mArticleAuthorName;
private String mArticleUrl;
public MyNews(String articleTitle, String articleSectionName, String articlePubdate, String articleAuthorName, String articleUrl) {
mArticleTitle = articleTitle;
mArticleSectionName = articleSectionName;
mArticlePubdate = articlePubdate;
mArticleAuthorName = articleAuthorName;
mArticleUrl = articleUrl;
}
public String getArticleTitle() {
return mArticleTitle;
}
public String getArticleSectionName() {
return mArticleSectionName;
}
public String getArticlePubdate() {
return mArticlePubdate;
}
public String getArticleAuthorName() {
return mArticleAuthorName;
}
public String getArticleUrl() {
return mArticleUrl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment