Class ArticleStatistics.Builder

  • Enclosing class:
    ArticleStatistics

    public static final class ArticleStatistics.Builder
    extends java.lang.Object
    • Method Detail

      • type

        public ArticleStatistics.Builder type​(java.util.Optional<java.lang.String> type)

        The type of object - article_statistics.

      • views

        public ArticleStatistics.Builder views​(java.util.Optional<java.lang.Integer> views)

        The number of total views the article has received.

      • conversions

        public ArticleStatistics.Builder conversions​(java.util.Optional<java.lang.Integer> conversions)

        The number of conversations started from the article.

      • reactions

        public ArticleStatistics.Builder reactions​(java.util.Optional<java.lang.Integer> reactions)

        The number of total reactions the article has received.

      • happyReactionPercentage

        public ArticleStatistics.Builder happyReactionPercentage​(java.util.Optional<java.lang.Float> happyReactionPercentage)

        The percentage of happy reactions the article has received against other types of reaction.

      • happyReactionPercentage

        public ArticleStatistics.Builder happyReactionPercentage​(java.lang.Float happyReactionPercentage)
      • neutralReactionPercentage

        public ArticleStatistics.Builder neutralReactionPercentage​(java.util.Optional<java.lang.Float> neutralReactionPercentage)

        The percentage of neutral reactions the article has received against other types of reaction.

      • neutralReactionPercentage

        public ArticleStatistics.Builder neutralReactionPercentage​(java.lang.Float neutralReactionPercentage)
      • sadReactionPercentage

        public ArticleStatistics.Builder sadReactionPercentage​(java.util.Optional<java.lang.Float> sadReactionPercentage)

        The percentage of sad reactions the article has received against other types of reaction.