facebook4j.internal.json
Class ScoreJSONImpl

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

final class ScoreJSONImpl
extends FacebookResponseImpl
implements Score, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  Application application
           
private  java.lang.Integer score
           
private static long serialVersionUID
           
private  java.lang.String type
           
private  IdNameEntity user
           
 
Constructor Summary
ScoreJSONImpl(HttpResponse res, Configuration conf)
           
ScoreJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Score> createScoreList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 Application getApplication()
           
 java.lang.Integer getScore()
           
 java.lang.String getType()
           
 IdNameEntity getUser()
           
 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

user

private IdNameEntity user

score

private java.lang.Integer score

application

private Application application

type

private java.lang.String type
Constructor Detail

ScoreJSONImpl

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

ScoreJSONImpl

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

init

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

getUser

public IdNameEntity getUser()
Specified by:
getUser in interface Score

getScore

public java.lang.Integer getScore()
Specified by:
getScore in interface Score

getApplication

public Application getApplication()
Specified by:
getApplication in interface Score

getType

public java.lang.String getType()
Specified by:
getType in interface Score

createScoreList

static ResponseList<Score> createScoreList(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