facebook4j.internal.json
Class AlbumJSONImpl

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

final class AlbumJSONImpl
extends FacebookResponseImpl
implements Album, 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.Boolean canUpload
           
private  PagableList<Comment> comments
           
private  java.lang.Integer count
           
private  java.lang.String coverPhoto
           
private  java.util.Date createdTime
           
private  java.lang.String description
           
private  Category from
           
private  java.lang.String id
           
private  PagableList<Like> likes
           
private  java.net.URL link
           
private  java.lang.String location
           
private  java.lang.String name
           
private  Place place
           
private  PrivacyType privacy
           
private static long serialVersionUID
           
private  java.lang.String type
           
private  java.util.Date updatedTime
           
 
Constructor Summary
AlbumJSONImpl(HttpResponse res, Configuration conf)
           
AlbumJSONImpl(JSONObject json)
           
 
Method Summary
 java.lang.Boolean canUpload()
           
(package private) static ResponseList<Album> createAlbumList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 PagableList<Comment> getComments()
           
 java.lang.Integer getCount()
           
 java.lang.String getCoverPhoto()
           
 java.util.Date getCreatedTime()
           
 java.lang.String getDescription()
           
 Category getFrom()
           
 java.lang.String getId()
           
 PagableList<Like> getLikes()
           
 java.net.URL getLink()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 Place getPlace()
           
 PrivacyType getPrivacy()
           
 java.lang.String getType()
           
 java.util.Date getUpdatedTime()
           
 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

name

private java.lang.String name

description

private java.lang.String description

location

private java.lang.String location

link

private java.net.URL link

coverPhoto

private java.lang.String coverPhoto

privacy

private PrivacyType privacy

count

private java.lang.Integer count

type

private java.lang.String type

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

canUpload

private java.lang.Boolean canUpload

place

private Place place

likes

private PagableList<Like> likes

comments

private PagableList<Comment> comments
Constructor Detail

AlbumJSONImpl

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

AlbumJSONImpl

AlbumJSONImpl(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 Album

getFrom

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

getName

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

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Album

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface Album

getLink

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

getCoverPhoto

public java.lang.String getCoverPhoto()
Specified by:
getCoverPhoto in interface Album

getPrivacy

public PrivacyType getPrivacy()
Specified by:
getPrivacy in interface Album

getCount

public java.lang.Integer getCount()
Specified by:
getCount in interface Album

getType

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

getCreatedTime

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

getUpdatedTime

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

canUpload

public java.lang.Boolean canUpload()
Specified by:
canUpload in interface Album

getPlace

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

getLikes

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

getComments

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

createAlbumList

static ResponseList<Album> createAlbumList(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