facebook4j.internal.json
Class PhotoJSONImpl

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

final class PhotoJSONImpl
extends FacebookResponseImpl
implements Photo, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
private  class PhotoJSONImpl.ImageJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Photo
Photo.Image
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  PagableList<Comment> comments
           
private  java.util.Date createdTime
           
private  Category from
           
private  java.lang.Integer height
           
private  java.net.URL icon
           
private  java.lang.String id
           
private  java.util.List<Photo.Image> images
           
private  PagableList<Like> likes
           
private  java.net.URL link
           
private  java.lang.String name
           
private  java.net.URL picture
           
private  Place place
           
private  java.lang.Integer position
           
private static long serialVersionUID
           
private  java.net.URL source
           
private  PagableList<Tag> tags
           
private  java.util.Date updatedTime
           
private  java.lang.Integer width
           
 
Constructor Summary
PhotoJSONImpl(HttpResponse res, Configuration conf)
           
PhotoJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Photo> createPhotoList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 PagableList<Comment> getComments()
           
 java.util.Date getCreatedTime()
           
 Category getFrom()
           
 java.lang.Integer getHeight()
           
 java.net.URL getIcon()
           
 java.lang.String getId()
           
 java.util.List<Photo.Image> getImages()
           
 PagableList<Like> getLikes()
           
 java.net.URL getLink()
           
 java.lang.String getName()
           
 java.net.URL getPicture()
           
 Place getPlace()
           
 java.lang.Integer getPosition()
           
 java.net.URL getSource()
           
 PagableList<Tag> getTags()
           
 java.util.Date getUpdatedTime()
           
 java.lang.Integer getWidth()
           
 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

from

private Category from

tags

private PagableList<Tag> tags

name

private java.lang.String name

icon

private java.net.URL icon

picture

private java.net.URL picture

source

private java.net.URL source

height

private java.lang.Integer height

width

private java.lang.Integer width

images

private java.util.List<Photo.Image> images

link

private java.net.URL link

place

private Place place

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

position

private java.lang.Integer position

comments

private PagableList<Comment> comments

likes

private PagableList<Like> likes
Constructor Detail

PhotoJSONImpl

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

PhotoJSONImpl

PhotoJSONImpl(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 Photo

getFrom

public Category getFrom()
Specified by:
getFrom in interface Photo

getTags

public PagableList<Tag> getTags()
Specified by:
getTags in interface Photo

getName

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

getIcon

public java.net.URL getIcon()
Specified by:
getIcon in interface Photo

getPicture

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

getSource

public java.net.URL getSource()
Specified by:
getSource in interface Photo

getHeight

public java.lang.Integer getHeight()
Specified by:
getHeight in interface Photo

getWidth

public java.lang.Integer getWidth()
Specified by:
getWidth in interface Photo

getImages

public java.util.List<Photo.Image> getImages()
Specified by:
getImages in interface Photo

getLink

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

getPlace

public Place getPlace()
Specified by:
getPlace in interface Photo

getCreatedTime

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

getUpdatedTime

public java.util.Date getUpdatedTime()
Specified by:
getUpdatedTime in interface Photo

getPosition

public java.lang.Integer getPosition()
Specified by:
getPosition in interface Photo

getComments

public PagableList<Comment> getComments()
Specified by:
getComments in interface Photo

getLikes

public PagableList<Like> getLikes()
Specified by:
getLikes in interface Photo

createPhotoList

static ResponseList<Photo> createPhotoList(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