facebook4j.internal.json
Class EventJSONImpl

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

final class EventJSONImpl
extends FacebookResponseImpl
implements Event, 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.String description
           
private  java.util.Date endTime
           
private  java.lang.String id
           
private  java.lang.Boolean isDateOnly
           
private  java.lang.String location
           
private  java.lang.String name
           
private  Category owner
           
private  EventPrivacyType privacy
           
private  java.lang.String rsvpStatus
           
private static long serialVersionUID
           
private  java.util.Date startTime
           
private  java.net.URI ticketURI
           
private  java.util.TimeZone timezone
           
private  java.util.Date updatedTime
           
private  Venue venue
           
 
Constructor Summary
EventJSONImpl(HttpResponse res, Configuration conf)
           
EventJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Event> createEventList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 java.util.Date getEndTime()
           
 java.lang.String getId()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 Category getOwner()
           
 EventPrivacyType getPrivacy()
           
 java.lang.String getRsvpStatus()
           
 java.util.Date getStartTime()
           
 java.net.URI getTicketURI()
           
 java.util.TimeZone getTimezone()
           
 java.util.Date getUpdatedTime()
           
 Venue getVenue()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isDateOnly()
           
 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

owner

private Category owner

name

private java.lang.String name

description

private java.lang.String description

isDateOnly

private java.lang.Boolean isDateOnly

startTime

private java.util.Date startTime

endTime

private java.util.Date endTime

location

private java.lang.String location

venue

private Venue venue

privacy

private EventPrivacyType privacy

updatedTime

private java.util.Date updatedTime

rsvpStatus

private java.lang.String rsvpStatus

ticketURI

private java.net.URI ticketURI

timezone

private java.util.TimeZone timezone
Constructor Detail

EventJSONImpl

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

EventJSONImpl

EventJSONImpl(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 Event

getOwner

public Category getOwner()
Specified by:
getOwner in interface Event

getName

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

getDescription

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

isDateOnly

public java.lang.Boolean isDateOnly()
Specified by:
isDateOnly in interface Event

getStartTime

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

getEndTime

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

getLocation

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

getVenue

public Venue getVenue()
Specified by:
getVenue in interface Event

getPrivacy

public EventPrivacyType getPrivacy()
Specified by:
getPrivacy in interface Event

getUpdatedTime

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

getRsvpStatus

public java.lang.String getRsvpStatus()
Specified by:
getRsvpStatus in interface Event

getTicketURI

public java.net.URI getTicketURI()
Specified by:
getTicketURI in interface Event

getTimezone

public java.util.TimeZone getTimezone()
Specified by:
getTimezone in interface Event

createEventList

static ResponseList<Event> createEventList(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