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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddValue(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 ofJsonObjectbecause its structure can vary depending on which type of Insight you're looking at.booleanremoveValue(JsonObject json) voidsetDescription(String description) The human-readable description of this Insight data.voidLength of the period during which the insights were collected, e.g.voidThe human-readable title of this Insight data.voidsetTotalValue(InsightTotalValue totalValue) Methods inherited from class com.restfb.types.NamedFacebookType
getName, setNameMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods 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 ofJsonObjectbecause 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
-