Class Category
A category organizes other items and is contained in a hierarchy.
isDepartment
If true
, this category is in a department. Dynamic promoted content can be configured to only choose categories that are also departments.
Fields inherited from class Item
:
description
expiration
id
imageUrl
location
name
numRatings
promotionState
published
rating
tags
url
Category
Creates a Category
with the required id only. The category 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 Category |
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 Item