facebook4j.internal.json
Class InsightJSONImpl

java.lang.Object
  extended by facebook4j.internal.json.FacebookResponseImpl
      extended by facebook4j.internal.json.InsightJSONImpl
All Implemented Interfaces:
FacebookResponse, Insight, java.io.Serializable

final class InsightJSONImpl
extends FacebookResponseImpl
implements Insight, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
private  class InsightJSONImpl.ValueJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Insight
Insight.Value
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  java.lang.String description
           
private  java.lang.String id
           
private  java.lang.String name
           
private  java.lang.String period
           
private static long serialVersionUID
           
private  java.lang.String title
           
private  java.util.List<Insight.Value> values
           
 
Constructor Summary
InsightJSONImpl(HttpResponse res, Configuration conf)
           
InsightJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Insight> createInsightList(HttpResponse res, Configuration conf)
           
private  java.util.List<Insight.Value> createValueList(JSONObject json)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.String getPeriod()
           
 java.lang.String getTitle()
           
 java.util.List<Insight.Value> getValues()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.String toString()
           
 
Methods inherited from class facebook4j.internal.json.FacebookResponseImpl
getMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface facebook4j.FacebookResponse
getMetadata
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private java.lang.String id

name

private java.lang.String name

period

private java.lang.String period

values

private java.util.List<Insight.Value> values

title

private java.lang.String title

description

private java.lang.String description
Constructor Detail

InsightJSONImpl

InsightJSONImpl(HttpResponse res,
                Configuration conf)
          throws FacebookException
Throws:
FacebookException

InsightJSONImpl

InsightJSONImpl(JSONObject json)
          throws FacebookException
Throws:
FacebookException
Method Detail

init

private void init(JSONObject json)
           throws FacebookException
Throws:
FacebookException

getId

public java.lang.String getId()
Specified by:
getId in interface Insight

getName

public java.lang.String getName()
Specified by:
getName in interface Insight

getPeriod

public java.lang.String getPeriod()
Specified by:
getPeriod in interface Insight

getValues

public java.util.List<Insight.Value> getValues()
Specified by:
getValues in interface Insight

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface Insight

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Insight

createInsightList

static ResponseList<Insight> createInsightList(HttpResponse res,
                                               Configuration conf)
                                        throws FacebookException
Throws:
FacebookException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createValueList

private java.util.List<Insight.Value> createValueList(JSONObject json)
                                               throws FacebookException
Throws:
FacebookException