Package com.restfb.types
Class Insight
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.NamedFacebookType
com.restfb.types.Insight
- All Implemented Interfaces:
Serializable
Represents the Insight Graph API type.
- Since:
- 1.6.3
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addValue
(JsonObject json) The human-readable description of this Insight data.Length of the period during which the insights were collected, e.g.getTitle()
The human-readable title of this Insight data.Data for this Insight as a list ofJsonObject
because its structure can vary depending on which type of Insight you're looking at.boolean
removeValue
(JsonObject json) void
setDescription
(String description) The human-readable description of this Insight data.void
Length of the period during which the insights were collected, e.g.void
The human-readable title of this Insight data.void
setTotalValue
(InsightTotalValue totalValue) Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Insight
public Insight()
-
-
Method Details
-
getValues
Data for this Insight as a list ofJsonObject
because its structure can vary depending on which type of Insight you're looking at.- Returns:
- Data for this Insight.
-
addValue
-
removeValue
-
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
Length of the period during which the insights were collected, e.g. 'day', 'week' or 'month'. -
getTitle
The human-readable title of this Insight data.- Returns:
- The human-readable title of this Insight data.
-
setTitle
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
The human-readable description of this Insight data. -
getTotalValue
-
setTotalValue
-