Package com.zendesk.sdk.model.helpcenter
Class ArticlesSearchResponse
- java.lang.Object
-
- com.zendesk.sdk.model.helpcenter.ArticlesSearchResponse
-
- All Implemented Interfaces:
- ArticlesResponse
public class ArticlesSearchResponse extends java.lang.Object implements ArticlesResponse
This is a class model for a response for searching sections. This object will be created byHelpCenterProvider
This class is a model that will be serialised to JSON and deserialised from JSON to this model. As such it does not follow the m naming prefix for fields.
- See Also:
- Search API documentation
-
-
Constructor Summary
Constructors Constructor and Description ArticlesSearchResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Article>
getArticles()
Gets a list of theArticle
returned as a result ofHelpCenterService.searchArticles(String, String, String, String, String, String, String, Integer, Integer)
java.util.List<Category>
getCategories()
Gets a list ofCategory
returned as a result of specifyingjava.lang.String
getNextPage()
Gets the URL of the next page of resultsjava.lang.String
getPreviousPage()
gets the URL of the previous page of resultsjava.util.List<Section>
getSections()
Gets a list ofSection
returned as a result of specifyingjava.util.List<User>
getUsers()
Gets a list ofUser
returned as a result of specifying
-
-
-
Method Detail
-
getArticles
public java.util.List<Article> getArticles()
Description copied from interface:ArticlesResponse
Gets a list of theArticle
returned as a result ofHelpCenterService.searchArticles(String, String, String, String, String, String, String, Integer, Integer)
- Specified by:
getArticles
in interfaceArticlesResponse
- Returns:
- The list of articles. This will be an empty list if there were no results.
-
getCategories
public java.util.List<Category> getCategories()
Description copied from interface:ArticlesResponse
Gets a list ofCategory
returned as a result of specifyingcategories
as a part of a sideload operation when callingHelpCenterService.searchArticles(String, String, String, String, String, String, String, Integer, Integer)
orHelpCenterService.listArticles(String, String, String, String, String, String, Integer, Integer)
- Specified by:
getCategories
in interfaceArticlesResponse
- Returns:
- The list of categories. This will be an empty list if there were no results or if categories were not side-loaded.
-
getSections
public java.util.List<Section> getSections()
Description copied from interface:ArticlesResponse
Gets a list ofSection
returned as a result of specifyingsections
as a part of a sideload operation when callingHelpCenterService.searchArticles(String, String, String, String, String, String, String, Integer, Integer)
orHelpCenterService.listArticles(String, String, String, String, String, String, Integer, Integer)
- Specified by:
getSections
in interfaceArticlesResponse
- Returns:
- The list of sections. This will be an empty list if there were no results or if sections were not side-loaded.
-
getUsers
public java.util.List<User> getUsers()
Description copied from interface:ArticlesResponse
Gets a list ofUser
returned as a result of specifyingusers
as a part of a sideload operation when callingHelpCenterService.searchArticles(String, String, String, String, String, String, String, Integer, Integer)
orHelpCenterService.listArticles(String, String, String, String, String, String, Integer, Integer)
- Specified by:
getUsers
in interfaceArticlesResponse
- Returns:
- The list of users. This will be an empty list if there were no results or if users were not side-loaded.
-
getNextPage
public java.lang.String getNextPage()
Gets the URL of the next page of resultsIf this method returns null it means there is no next page for the given parameters specified in a
HelpCenterSearch
- Returns:
- The URL of the next page
- See Also:
- Pagination
-
getPreviousPage
public java.lang.String getPreviousPage()
gets the URL of the previous page of resultsIf this method returns null it means you are on the first page.
- Returns:
- The URL of the previous page of results
- See Also:
- Pagination
-
-