Newer Version Available
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
A category organizes other items and is contained in a hierarchy.
1public class Category
2extends Item1@Nullable
2public Boolean isDepartmentIf 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:
descriptionexpirationidimageUrllocationnamenumRatingspromotionStatepublishedratingtagsurl1public Category(@NonNull
2 String id)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 |
getItemType() | String |
Methods inherited from class Item:
1public static Category fromJSONObject(org.json.JSONObject json,
2 java.lang.String id)1public String getItemType()Specified by getItemType in class Item.
Newer Version Available