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 java.lang.Object implements ArticleStatistics.ViewsStage, ArticleStatistics.ConversionsStage, ArticleStatistics.ReactionsStage, ArticleStatistics.HappyReactionPercentageStage, ArticleStatistics.NeutralReactionPercentageStage, ArticleStatistics.SadReactionPercentageStage, ArticleStatistics._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArticleStatisticsbuild()ArticleStatistics.ReactionsStageconversions(int conversions)The number of conversations started from the article.ArticleStatistics.Builderfrom(ArticleStatistics other)ArticleStatistics.NeutralReactionPercentageStagehappyReactionPercentage(float happyReactionPercentage)The percentage of happy reactions the article has received against other types of reaction.ArticleStatistics.SadReactionPercentageStageneutralReactionPercentage(float neutralReactionPercentage)The percentage of neutral reactions the article has received against other types of reaction.ArticleStatistics.HappyReactionPercentageStagereactions(int reactions)The number of total reactions the article has received.ArticleStatistics._FinalStagesadReactionPercentage(float sadReactionPercentage)The percentage of sad reactions the article has received against other types of reaction.ArticleStatistics.ConversionsStageviews(int views)The number of total views the article has received.
-
-
-
Method Detail
-
from
public ArticleStatistics.Builder from(ArticleStatistics other)
- Specified by:
fromin interfaceArticleStatistics.ViewsStage
-
views
public ArticleStatistics.ConversionsStage views(int 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
public ArticleStatistics.ReactionsStage conversions(int 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
public ArticleStatistics.HappyReactionPercentageStage reactions(int 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
public ArticleStatistics._FinalStage sadReactionPercentage(float 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
public ArticleStatistics build()
- Specified by:
buildin interfaceArticleStatistics._FinalStage
-
-