facebook4j.internal.json
Class AccountJSONImpl

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

final class AccountJSONImpl
extends FacebookResponseImpl
implements Account, 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  java.lang.String accessToken
           
private  java.lang.String category
           
private  java.lang.String id
           
private  java.lang.String name
           
private  java.util.List<java.lang.String> perms
           
private static long serialVersionUID
           
 
Constructor Summary
AccountJSONImpl(HttpResponse res, Configuration conf)
           
AccountJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Account> createAccountList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAccessToken()
           
 java.lang.String getCategory()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.util.List<java.lang.String> getPerms()
           
 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

name

private java.lang.String name

accessToken

private java.lang.String accessToken

category

private java.lang.String category

id

private java.lang.String id

perms

private java.util.List<java.lang.String> perms
Constructor Detail

AccountJSONImpl

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

AccountJSONImpl

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

init

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

getName

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

getAccessToken

public java.lang.String getAccessToken()
Specified by:
getAccessToken in interface Account

getCategory

public java.lang.String getCategory()
Specified by:
getCategory in interface Account

getId

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

getPerms

public java.util.List<java.lang.String> getPerms()
Specified by:
getPerms in interface Account

createAccountList

static ResponseList<Account> createAccountList(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