facebook4j.internal.json
Class AchievementJSONImpl

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

final class AchievementJSONImpl
extends FacebookResponseImpl
implements Achievement, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
private  class AchievementJSONImpl.AchievedObjectJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Achievement
Achievement.AchievedObject
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  Achievement.AchievedObject achievement
           
private  Application application
           
private  PagableList<Comment> comments
           
private  java.util.Date endTime
           
private  IdNameEntity from
           
private  java.lang.String id
           
private  java.lang.Integer importance
           
private  PagableList<Like> likes
           
private  java.util.Date publishTime
           
private static long serialVersionUID
           
private  java.util.Date startTime
           
 
Constructor Summary
AchievementJSONImpl(HttpResponse res, Configuration conf)
           
AchievementJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Achievement> createAchievementList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 Achievement.AchievedObject getAchievement()
           
 Application getApplication()
           
 PagableList<Comment> getComments()
           
 java.util.Date getEndTime()
           
 IdNameEntity getFrom()
           
 java.lang.String getId()
           
 java.lang.Integer getImportance()
           
 PagableList<Like> getLikes()
           
 java.util.Date getPublishTime()
           
 java.util.Date getStartTime()
           
 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 IdNameEntity from

startTime

private java.util.Date startTime

endTime

private java.util.Date endTime

publishTime

private java.util.Date publishTime

application

private Application application

importance

private java.lang.Integer importance

achievement

private Achievement.AchievedObject achievement

likes

private PagableList<Like> likes

comments

private PagableList<Comment> comments
Constructor Detail

AchievementJSONImpl

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

AchievementJSONImpl

AchievementJSONImpl(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 Achievement

getFrom

public IdNameEntity getFrom()
Specified by:
getFrom in interface Achievement

getStartTime

public java.util.Date getStartTime()
Specified by:
getStartTime in interface Achievement

getEndTime

public java.util.Date getEndTime()
Specified by:
getEndTime in interface Achievement

getPublishTime

public java.util.Date getPublishTime()
Specified by:
getPublishTime in interface Achievement

getApplication

public Application getApplication()
Specified by:
getApplication in interface Achievement

getImportance

public java.lang.Integer getImportance()
Specified by:
getImportance in interface Achievement

getAchievement

public Achievement.AchievedObject getAchievement()
Specified by:
getAchievement in interface Achievement

getLikes

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

getComments

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

createAchievementList

static ResponseList<Achievement> createAchievementList(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