Class SectionItem
- java.lang.Object
-
- com.zendesk.sdk.model.helpcenter.help.SectionItem
-
-
Field Summary
-
Fields inherited from interface com.zendesk.sdk.model.helpcenter.help.HelpItem
TYPE_ARTICLE, TYPE_CATEGORY, TYPE_LOADING, TYPE_NO_RESULTS, TYPE_PADDING, TYPE_SECTION, TYPE_SEE_ALL
-
-
Constructor Summary
Constructors Constructor and Description SectionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddChild(HelpItem child)Adds a child to the SectionItemvoidaddChildren(java.util.List<HelpItem> children)Adds a list of child items to the SectionItembooleanequals(java.lang.Object o)java.util.List<HelpItem>getChildren()Gets the list of children that this item has.java.lang.LonggetId()Gets the ID of this item.java.lang.StringgetName()Gets the name of the itemjava.lang.LonggetParentId()Returns the ID of the parent item.intgetTotalArticlesCount()Gets the number of articles in this SectionItemintgetViewType()Gets the type of the iteminthashCode()voidremoveChild(HelpItem helpItem)Removes a child from the SectionItem
-
-
-
Method Detail
-
getViewType
public int getViewType()
Description copied from interface:HelpItemGets the type of the item- Specified by:
getViewTypein interfaceHelpItem- Returns:
- the type of the item
-
getName
public java.lang.String getName()
Description copied from interface:HelpItemGets the name of the item
-
getId
public java.lang.Long getId()
Description copied from interface:HelpItemGets the ID of this item.
-
getParentId
public java.lang.Long getParentId()
Description copied from interface:HelpItemReturns the ID of the parent item.- Specified by:
getParentIdin interfaceHelpItem- Returns:
- the ID of the parent item, or null if there is none.
-
getChildren
public java.util.List<HelpItem> getChildren()
Description copied from interface:HelpItemGets the list of children that this item has.- Specified by:
getChildrenin interfaceHelpItem- Returns:
- the list of children that this item has. May be empty if there are no children, or if the item type does not permit children.
-
addChild
public void addChild(HelpItem child)
Adds a child to the SectionItem- Parameters:
child- the child to add to the SectionItem
-
addChildren
public void addChildren(java.util.List<HelpItem> children)
Adds a list of child items to the SectionItem- Parameters:
children- the child items to add
-
removeChild
public void removeChild(HelpItem helpItem)
Removes a child from the SectionItem- Parameters:
helpItem- the child to remove
-
getTotalArticlesCount
public int getTotalArticlesCount()
Gets the number of articles in this SectionItem- Returns:
- the number of articles in this SectionItem
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-