Class Article
An article is content that is typically organized by category or keyword.
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
:
description
expiration
id
imageUrl
location
name
numRatings
promotionState
published
rating
tags
url
modifiedDate
Date and time when this article was last modified. For other dates that can be set, see Item.expiration
and Item.published
.
subTitle
Subtitle for this article. To set the title, see Item.name
.
Creates an article with the required ID only.
Article
Creates an article with the required id only. The article can then be further modified.
Parameters
Parameter | Description | Required? |
---|---|---|
id | See Item.id | Yes |
Method | Modifier and Type |
---|---|
fromJSONObject(org.json.JSONObject json, java.lang.String id) | static Article |
toJSONObject() | org.json.JSONObject |
Methods inherited from class Item
:
Methods inherited from class java.lang.Object
:
- equals
- getClass
- hashCode
- notify
- notifyAll
- toString
- wait
- wait
- wait
toJSONObject
Overrides
toJSONObject
in class CategorizedItem
.