Class ArticleStatistics.Builder
- java.lang.Object
-
- com.intercom.api.types.ArticleStatistics.Builder
-
- All Implemented Interfaces:
ArticleStatistics._FinalStage,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.ReactionsStage, ArticleStatistics.HappyReactionPercentageStage, ArticleStatistics.NeutralReactionPercentageStage, ArticleStatistics.SadReactionPercentageStage, ArticleStatistics._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArticleStatisticsbuild()ArticleStatistics._FinalStageconversions(java.lang.Integer conversions)The number of conversations started from the article.ArticleStatistics._FinalStageconversions(java.util.Optional<java.lang.Integer> 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.ReactionsStageviews(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.ReactionsStage views(int views)
The number of total views the article has received.
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.
-
reactions
public ArticleStatistics.HappyReactionPercentageStage reactions(int reactions)
The number of total reactions the article has received.
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.
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.
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.
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.
-
conversions
public ArticleStatistics._FinalStage conversions(java.lang.Integer conversions)
The number of conversations started from the article.
- Specified by:
conversionsin interfaceArticleStatistics._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversions
public ArticleStatistics._FinalStage conversions(java.util.Optional<java.lang.Integer> conversions)
The number of conversations started from the article.
- Specified by:
conversionsin interfaceArticleStatistics._FinalStage
-
build
public ArticleStatistics build()
- Specified by:
buildin interfaceArticleStatistics._FinalStage
-
-