com.restfb.types
Class Insight

java.lang.Object
  extended by com.restfb.types.FacebookType
      extended by com.restfb.types.NamedFacebookType
          extended by 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
Insight()
           
 
Method Summary
 String getDescription()
          The human-readable description of this Insight data.
 String getPeriod()
          Length of the period during which the insights were collected, e.g.
 List<JsonObject> 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.
 
Methods inherited from class com.restfb.types.NamedFacebookType
getName
 
Methods inherited from class com.restfb.types.FacebookType
equals, getId, getMetadata, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Insight

public Insight()
Method Detail

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.

getDescription

public String getDescription()
The human-readable description of this Insight data.

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

getValues

public List<JsonObject> 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.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.