Class ArticleStatistics


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

      • getType

        public java.lang.String getType()
        Returns:
        The type of object - article_statistics.
      • getViews

        public int getViews()
        Returns:
        The number of total views the article has received.
      • getConversions

        public java.util.Optional<java.lang.Integer> getConversions()
        Returns:
        The number of conversations started from the article.
      • getReactions

        public int getReactions()
        Returns:
        The number of total reactions the article has received.
      • getHappyReactionPercentage

        public float getHappyReactionPercentage()
        Returns:
        The percentage of happy reactions the article has received against other types of reaction.
      • getNeutralReactionPercentage

        public float getNeutralReactionPercentage()
        Returns:
        The percentage of neutral reactions the article has received against other types of reaction.
      • getSadReactionPercentage

        public float getSadReactionPercentage()
        Returns:
        The percentage of sad reactions the article has received against other types of reaction.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object