facebook4j.internal.json
Class MilestoneJSONImpl

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

final class MilestoneJSONImpl
extends FacebookResponseImpl
implements Milestone, 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.util.Date createdTime
           
private  java.lang.String description
           
private  java.util.Date endTime
           
private  Category from
           
private  java.lang.String id
           
private  java.util.Date startTime
           
private  java.lang.String title
           
private  java.util.Date updatedTime
           
 
Constructor Summary
MilestoneJSONImpl(HttpResponse res, Configuration conf)
           
MilestoneJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Milestone> createMilestoneList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getCreatedTime()
           
 java.lang.String getDescription()
           
 java.util.Date getEndTime()
           
 Category getFrom()
           
 java.lang.String getId()
           
 java.util.Date getStartTime()
           
 java.lang.String getTitle()
           
 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

id

private java.lang.String id

title

private java.lang.String title

description

private java.lang.String description

from

private Category from

startTime

private java.util.Date startTime

endTime

private java.util.Date endTime

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime
Constructor Detail

MilestoneJSONImpl

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

MilestoneJSONImpl

MilestoneJSONImpl(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 Milestone

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface Milestone

getDescription

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

getFrom

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

getStartTime

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

getEndTime

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

getCreatedTime

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

getUpdatedTime

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

createMilestoneList

static ResponseList<Milestone> createMilestoneList(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