Created
September 24, 2018 23:05
-
-
Save coding-catie/94b119600ba8091ccd5409bfd531ef0f to your computer and use it in GitHub Desktop.
Mayat - News App MyNews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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