facebook4j.internal.json
Class PageJSONImpl

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

final class PageJSONImpl
extends FacebookResponseImpl
implements Page, java.io.Serializable

Since:
Facebook4J 1.2.0
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.Boolean canPost
           
private  java.lang.String category
           
private  java.lang.Integer checkins
           
private  Cover cover
           
private  java.util.Date createdTime
           
private  java.lang.String id
           
private  java.lang.Boolean isCommunityPage
           
private  java.lang.Boolean isPublished
           
private  java.lang.Integer likes
           
private  java.net.URL link
           
private  Place.Location location
           
private  java.lang.String name
           
private  java.lang.String phone
           
private  java.net.URL picture
           
private static long serialVersionUID
           
private  java.lang.Integer talkingAboutCount
           
private  java.lang.String website
           
private  java.lang.Integer wereHereCount
           
 
Constructor Summary
PageJSONImpl(HttpResponse res, Configuration conf)
           
PageJSONImpl(JSONObject json)
           
 
Method Summary
 java.lang.Boolean canPost()
           
(package private) static ResponseList<Page> createPageList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getAccessToken()
           
 java.lang.String getCategory()
           
 java.lang.Integer getCheckins()
           
 Cover getCover()
           
 java.util.Date getCreatedTime()
           
 java.lang.String getId()
           
 java.lang.Integer getLikes()
           
 java.net.URL getLink()
           
 Place.Location getLocation()
           
 java.lang.String getName()
           
 java.lang.String getPhone()
           
 java.net.URL getPicture()
           
 java.lang.Integer getTalkingAboutCount()
           
 java.lang.String getWebsite()
           
 java.lang.Integer getWereHereCount()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isCommunityPage()
           
 java.lang.Boolean isPublished()
           
 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
 

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

category

private java.lang.String category

createdTime

private java.util.Date createdTime

link

private java.net.URL link

isPublished

private java.lang.Boolean isPublished

canPost

private java.lang.Boolean canPost

likes

private java.lang.Integer likes

location

private Place.Location location

phone

private java.lang.String phone

checkins

private java.lang.Integer checkins

picture

private java.net.URL picture

cover

private Cover cover

website

private java.lang.String website

talkingAboutCount

private java.lang.Integer talkingAboutCount

accessToken

private java.lang.String accessToken

isCommunityPage

private java.lang.Boolean isCommunityPage

wereHereCount

private java.lang.Integer wereHereCount
Constructor Detail

PageJSONImpl

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

PageJSONImpl

PageJSONImpl(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 Page

getName

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

getCategory

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

getCreatedTime

public java.util.Date getCreatedTime()
Specified by:
getCreatedTime in interface Page

getLink

public java.net.URL getLink()
Specified by:
getLink in interface Page

isPublished

public java.lang.Boolean isPublished()
Specified by:
isPublished in interface Page

canPost

public java.lang.Boolean canPost()
Specified by:
canPost in interface Page

getLikes

public java.lang.Integer getLikes()
Specified by:
getLikes in interface Page

getLocation

public Place.Location getLocation()
Specified by:
getLocation in interface Page

getPhone

public java.lang.String getPhone()
Specified by:
getPhone in interface Page

getCheckins

public java.lang.Integer getCheckins()
Specified by:
getCheckins in interface Page

getPicture

public java.net.URL getPicture()
Specified by:
getPicture in interface Page

getCover

public Cover getCover()
Specified by:
getCover in interface Page

getWebsite

public java.lang.String getWebsite()
Specified by:
getWebsite in interface Page

getTalkingAboutCount

public java.lang.Integer getTalkingAboutCount()
Specified by:
getTalkingAboutCount in interface Page

getAccessToken

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

isCommunityPage

public java.lang.Boolean isCommunityPage()
Specified by:
isCommunityPage in interface Page

getWereHereCount

public java.lang.Integer getWereHereCount()
Specified by:
getWereHereCount in interface Page

createPageList

static ResponseList<Page> createPageList(HttpResponse res,
                                         Configuration conf)
                                  throws FacebookException
Throws:
FacebookException

equals

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

hashCode

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

toString

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