Class Insight

All Implemented Interfaces:
Serializable

public class Insight extends NamedFacebookType
Represents the Insight Graph API type.
Since:
1.6.3
Author:
Mark Allen
See Also:
  • Constructor Details

  • Method Details

    • getValues

      Data for this Insight as a list of JsonObject because its structure can vary depending on which type of Insight you're looking at.
      Returns:
      Data for this Insight.
    • addValue

      public boolean addValue(JsonObject json)
    • removeValue

      public boolean removeValue(JsonObject json)
    • getPeriod

      public String getPeriod()
      Length of the period during which the insights were collected, e.g. 'day', 'week' or 'month'.
      Returns:
      Length of the period during which the insights were collected.
    • setPeriod

      public void setPeriod(String period)
      Length of the period during which the insights were collected, e.g. 'day', 'week' or 'month'.
    • getTitle

      public String getTitle()
      The human-readable title of this Insight data.
      Returns:
      The human-readable title of this Insight data.
    • setTitle

      public void setTitle(String title)
      The human-readable title of this Insight data.
    • getDescription

      The human-readable description of this Insight data.
      Returns:
      The human-readable description of this Insight data.
    • setDescription

      public void setDescription(String description)
      The human-readable description of this Insight data.
    • getTotalValue

    • setTotalValue

      public void setTotalValue(InsightTotalValue totalValue)