Class Category

A category organizes other items and is contained in a hierarchy.

1public class Category
2extends Item

Fields 

isDepartment 

1public java.lang.Boolean 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:

Constructors 

Category 

1public Category(java.lang.String id)

Creates a Category with the required id only. The category can then be further modified.

Parameters:

ParameterDescriptionRequired?
idSee Item.idYes

Methods 

MethodModifier and Type
fromJSONObject(org.json.JSONObject json, java.lang.String id)static Category

Methods inherited from class Item:

fromJSONObject 

1public static Category fromJSONObject(org.json.JSONObject json,
2                                      java.lang.String id)