Package zendesk.support
Class FlatArticle
- java.lang.Object
-
- zendesk.support.FlatArticle
-
- All Implemented Interfaces:
- java.lang.Comparable<FlatArticle>
public class FlatArticle extends java.lang.Object implements java.lang.Comparable<FlatArticle>
This is a model class for a FlatArticle object which contains an Article object, its relevant Section object and its relevant Category object for ease of use. It will be created by theHelpCenterProvider
. Created by Zendesk.
-
-
Constructor Summary
Constructors Constructor and Description FlatArticle(Category category, Section section, Article article)
Creates an instance of FlatArticle from the given category, section and article
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
compareTo(FlatArticle flatArticle)
Article
getArticle()
The article object which this flat article is wrappingCategory
getCategory()
Gets the category which this article belongs toSection
getSection()
Gets the section which this article belongs tojava.lang.String
toString()
-
-
-
Constructor Detail
-
FlatArticle
public FlatArticle(Category category, Section section, Article article)
Creates an instance of FlatArticle from the given category, section and article- Parameters:
category
- The category which the article belongs tosection
- The section which the article belongs toarticle
- The article to wrap in this FlatArticle
-
-
Method Detail
-
getCategory
public Category getCategory()
Gets the category which this article belongs to- Returns:
- the category which this article belongs to
-
getSection
public Section getSection()
Gets the section which this article belongs to- Returns:
- the section which this article belongs to
-
getArticle
public Article getArticle()
The article object which this flat article is wrapping- Returns:
- article object which this flat article is wrapping
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(FlatArticle flatArticle)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FlatArticle>
-
-