Class Article
- java.lang.Object
-
- com.intercom.api.resources.articles.types.Article
-
- All Implemented Interfaces:
IArticleListItem
public final class Article extends java.lang.Object implements IArticleListItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceArticle._FinalStagestatic interfaceArticle.AuthorIdStagestatic classArticle.Builderstatic interfaceArticle.CreatedAtStagestatic interfaceArticle.IdStagestatic classArticle.Statestatic interfaceArticle.StateStagestatic interfaceArticle.TitleStagestatic interfaceArticle.UpdatedAtStagestatic interfaceArticle.WorkspaceIdStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Article.IdStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()intgetAuthorId()java.util.Optional<java.lang.String>getBody()intgetCreatedAt()java.util.Optional<java.lang.String>getDefaultLocale()java.util.Optional<java.lang.String>getDescription()java.lang.StringgetId()java.util.Optional<java.lang.Integer>getParentId()java.util.Optional<java.util.List<java.lang.Integer>>getParentIds()java.util.Optional<java.lang.String>getParentType()Article.StategetState()java.util.Optional<ArticleStatistics>getStatistics()java.lang.StringgetTitle()java.util.Optional<ArticleTranslatedContent>getTranslatedContent()java.util.Optional<java.lang.String>getType()intgetUpdatedAt()java.util.Optional<java.lang.String>getUrl()java.lang.StringgetWorkspaceId()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public java.util.Optional<java.lang.String> getType()
- Specified by:
getTypein interfaceIArticleListItem- Returns:
- The type of object -
article.
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceIArticleListItem- Returns:
- The unique identifier for the article which is given by Intercom.
-
getWorkspaceId
public java.lang.String getWorkspaceId()
- Specified by:
getWorkspaceIdin interfaceIArticleListItem- Returns:
- The id of the workspace which the article belongs to.
-
getTitle
public java.lang.String getTitle()
- Specified by:
getTitlein interfaceIArticleListItem- Returns:
- The title of the article. For multilingual articles, this will be the title of the default language's content.
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
- Specified by:
getDescriptionin interfaceIArticleListItem- Returns:
- The description of the article. For multilingual articles, this will be the description of the default language's content.
-
getBody
public java.util.Optional<java.lang.String> getBody()
- Specified by:
getBodyin interfaceIArticleListItem- Returns:
- The body of the article in HTML. For multilingual articles, this will be the body of the default language's content.
-
getAuthorId
public int getAuthorId()
- Specified by:
getAuthorIdin interfaceIArticleListItem- Returns:
- The id of the author of the article. For multilingual articles, this will be the id of the author of the default language's content. Must be a teammate on the help center's workspace.
-
getState
public Article.State getState()
- Returns:
- Whether the article is
publishedor is adraft. For multilingual articles, this will be the state of the default language's content.
-
getCreatedAt
public int getCreatedAt()
- Specified by:
getCreatedAtin interfaceIArticleListItem- Returns:
- The time when the article was created. For multilingual articles, this will be the timestamp of creation of the default language's content in seconds.
-
getUpdatedAt
public int getUpdatedAt()
- Specified by:
getUpdatedAtin interfaceIArticleListItem- Returns:
- The time when the article was last updated. For multilingual articles, this will be the timestamp of last update of the default language's content in seconds.
-
getUrl
public java.util.Optional<java.lang.String> getUrl()
- Specified by:
getUrlin interfaceIArticleListItem- Returns:
- The URL of the article. For multilingual articles, this will be the URL of the default language's content.
-
getParentId
public java.util.Optional<java.lang.Integer> getParentId()
- Specified by:
getParentIdin interfaceIArticleListItem- Returns:
- The id of the article's parent collection or section. An article without this field stands alone.
-
getParentIds
public java.util.Optional<java.util.List<java.lang.Integer>> getParentIds()
- Specified by:
getParentIdsin interfaceIArticleListItem- Returns:
- The ids of the article's parent collections or sections. An article without this field stands alone.
-
getParentType
public java.util.Optional<java.lang.String> getParentType()
- Specified by:
getParentTypein interfaceIArticleListItem- Returns:
- The type of parent, which can either be a
collectionorsection.
-
getDefaultLocale
public java.util.Optional<java.lang.String> getDefaultLocale()
- Specified by:
getDefaultLocalein interfaceIArticleListItem- Returns:
- The default locale of the help center. This field is only returned for multilingual help centers.
-
getTranslatedContent
public java.util.Optional<ArticleTranslatedContent> getTranslatedContent()
- Specified by:
getTranslatedContentin interfaceIArticleListItem
-
getStatistics
public java.util.Optional<ArticleStatistics> getStatistics()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static Article.IdStage builder()
-
-