facebook4j.internal.json
Class CheckinJSONImpl

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

final class CheckinJSONImpl
extends FacebookResponseImpl
implements Checkin, 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  Application application
           
private  PagableList<Comment> comments
           
private  GeoLocation coordinates
           
private  java.util.Date createdTime
           
private  IdNameEntity from
           
private  java.lang.String id
           
private  PagableList<Like> likes
           
private  java.lang.String message
           
private  Place place
           
private static long serialVersionUID
           
private  PagableList<IdNameEntity> tags
           
private  java.lang.String type
           
 
Constructor Summary
CheckinJSONImpl(HttpResponse res, Configuration conf)
           
CheckinJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Checkin> createCheckinList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 Application getApplication()
           
 PagableList<Comment> getComments()
           
 GeoLocation getCoordinates()
           
 java.util.Date getCreatedTime()
           
 IdNameEntity getFrom()
           
 java.lang.String getId()
           
 PagableList<Like> getLikes()
           
 java.lang.String getMessage()
           
 Place getPlace()
           
 PagableList<IdNameEntity> getTags()
           
 java.lang.String getType()
           
 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

tags

private PagableList<IdNameEntity> tags

place

private Place place

application

private Application application

createdTime

private java.util.Date createdTime

likes

private PagableList<Like> likes

message

private java.lang.String message

comments

private PagableList<Comment> comments

type

private java.lang.String type

coordinates

private GeoLocation coordinates
Constructor Detail

CheckinJSONImpl

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

CheckinJSONImpl

CheckinJSONImpl(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 Checkin

getFrom

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

getTags

public PagableList<IdNameEntity> getTags()
Specified by:
getTags in interface Checkin

getPlace

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

getApplication

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

getCreatedTime

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

getLikes

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

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface Checkin

getComments

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

getType

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

getCoordinates

public GeoLocation getCoordinates()
Specified by:
getCoordinates in interface Checkin

createCheckinList

static ResponseList<Checkin> createCheckinList(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