Package com.intercom.api.types
Class ArticleStatistics.Builder
java.lang.Object
com.intercom.api.types.ArticleStatistics.Builder
- All Implemented Interfaces:
ArticleStatistics._FinalStage,ArticleStatistics.ConversionsStage,ArticleStatistics.HappyReactionPercentageStage,ArticleStatistics.NeutralReactionPercentageStage,ArticleStatistics.ReactionsStage,ArticleStatistics.SadReactionPercentageStage,ArticleStatistics.ViewsStage
- Enclosing class:
ArticleStatistics
public static final class ArticleStatistics.Builder
extends Object
implements ArticleStatistics.ViewsStage, ArticleStatistics.ConversionsStage, ArticleStatistics.ReactionsStage, ArticleStatistics.HappyReactionPercentageStage, ArticleStatistics.NeutralReactionPercentageStage, ArticleStatistics.SadReactionPercentageStage, ArticleStatistics._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()conversions(int conversions) The number of conversations started from the article.from(ArticleStatistics other) happyReactionPercentage(float happyReactionPercentage) The percentage of happy reactions the article has received against other types of reaction.neutralReactionPercentage(float neutralReactionPercentage) The percentage of neutral reactions the article has received against other types of reaction.reactions(int reactions) The number of total reactions the article has received.sadReactionPercentage(float sadReactionPercentage) The percentage of sad reactions the article has received against other types of reaction.views(int views) The number of total views the article has received.
-
Method Details
-
from
- Specified by:
fromin interfaceArticleStatistics.ViewsStage
-
views
The number of total views the article has received.
- Specified by:
viewsin interfaceArticleStatistics.ViewsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversions
The number of conversations started from the article.
- Specified by:
conversionsin interfaceArticleStatistics.ConversionsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reactions
The number of total reactions the article has received.
- Specified by:
reactionsin interfaceArticleStatistics.ReactionsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
happyReactionPercentage
public ArticleStatistics.NeutralReactionPercentageStage happyReactionPercentage(float happyReactionPercentage) The percentage of happy reactions the article has received against other types of reaction.
- Specified by:
happyReactionPercentagein interfaceArticleStatistics.HappyReactionPercentageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
neutralReactionPercentage
public ArticleStatistics.SadReactionPercentageStage neutralReactionPercentage(float neutralReactionPercentage) The percentage of neutral reactions the article has received against other types of reaction.
- Specified by:
neutralReactionPercentagein interfaceArticleStatistics.NeutralReactionPercentageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sadReactionPercentage
The percentage of sad reactions the article has received against other types of reaction.
- Specified by:
sadReactionPercentagein interfaceArticleStatistics.SadReactionPercentageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceArticleStatistics._FinalStage
-