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
public class Insight extends NamedFacebookType
Represents the Insight Graph API type.- Since:
- 1.6.3
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Insight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addValue(JsonObject json)
String
getDescription()
The human-readable description of this Insight data.String
getPeriod()
Length of the period during which the insights were collected, e.g.String
getTitle()
The human-readable title of this Insight data.InsightTotalValue
getTotalValue()
List<JsonObject>
getValues()
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
setPeriod(String period)
Length of the period during which the insights were collected, e.g.void
setTitle(String title)
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 Detail
-
Insight
public Insight()
-
-
Method Detail
-
getValues
public List<JsonObject> 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
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.
-
getDescription
public String 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
public InsightTotalValue getTotalValue()
-
setTotalValue
public void setTotalValue(InsightTotalValue totalValue)
-
-