facebook4j.internal.json
Class AdminJSONImpl

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

final class AdminJSONImpl
extends FacebookResponseImpl
implements Admin, 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 id
           
private  java.lang.String name
           
private  java.util.List<java.lang.String> perms
           
private  java.lang.String role
           
private static long serialVersionUID
           
 
Constructor Summary
AdminJSONImpl(HttpResponse res, Configuration conf)
           
AdminJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Admin> createAdminList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.util.List<java.lang.String> getPerms()
           
 java.lang.String getRole()
           
 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

role

private java.lang.String role

perms

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

AdminJSONImpl

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

AdminJSONImpl

AdminJSONImpl(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 Admin

getName

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

getRole

public java.lang.String getRole()
Specified by:
getRole in interface Admin

getPerms

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

createAdminList

static ResponseList<Admin> createAdminList(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