Class Article
An article is content that is typically organized by category or keyword.
1public class Article
2extends CategorizedItemFields
| Field | Description | Modifier and Type |
|---|---|---|
modifiedDate | Date and time when this article was last modified. | java.util.Date |
subTitle | Subtitle for this article. | java.lang.String |
Fields inherited from class CategorizedItem:
Fields inherited from class Item:
descriptionexpirationidimageUrllocationnamenumRatingspromotionStatepublishedratingtagsurl
modifiedDate
1@Nullable
2public Date modifiedDateDate and time when this article was last modified. For other dates that can be set, see Item.expiration and Item.published.
subTitle
1@Nullable
2public String subTitleSubtitle for this article. To set the title, see Item.name .
Constructors
1Article(java.lang.String id)Creates an article with the required ID only.
Article
1public Article(@NonNull
2 String id)Creates an article with the required ID only. The article can then be further modified.
Parameters
| Parameter | Description | Required? |
|---|---|---|
id | See Item.id | Yes |
Methods
| Method | Modifier and Type |
|---|---|
fromJSONObject(org.json.JSONObject json, java.lang.String id) | static Article |
getItemType() | String |
Methods inherited from class Item:
fromJSONObject
1public static Article fromJSONObject(org.json.JSONObject json,
2 java.lang.String id)getItemType
1public String getItemType()Specified by getItemType in class Item.
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!