facebook4j.internal.json
Class NotificationJSONImpl

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

final class NotificationJSONImpl
extends FacebookResponseImpl
implements Notification, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
private static class NotificationJSONImpl.TargetObjectJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Notification
Notification.TargetObject
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  Application application
           
private  java.util.Date createdTime
           
private  IdNameEntity from
           
private  java.lang.String id
           
private  java.net.URL link
           
private static long serialVersionUID
           
private  Notification.TargetObject targetObject
           
private  java.lang.String title
           
private  IdNameEntity to
           
private  java.lang.Boolean unread
           
private  java.util.Date updatedTime
           
 
Constructor Summary
NotificationJSONImpl(HttpResponse res, Configuration conf)
           
NotificationJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Notification> createNotificationList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 Application getApplication()
           
 java.util.Date getCreatedTime()
           
 IdNameEntity getFrom()
           
 java.lang.String getId()
           
 java.net.URL getLink()
           
 Notification.TargetObject getTargetObject()
           
 java.lang.String getTitle()
           
 IdNameEntity getTo()
           
 java.util.Date getUpdatedTime()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.String toString()
           
 java.lang.Boolean unread()
           
 
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

to

private IdNameEntity to

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

title

private java.lang.String title

link

private java.net.URL link

application

private Application application

unread

private java.lang.Boolean unread

targetObject

private Notification.TargetObject targetObject
Constructor Detail

NotificationJSONImpl

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

NotificationJSONImpl

NotificationJSONImpl(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 Notification

getFrom

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

getTo

public IdNameEntity getTo()
Specified by:
getTo in interface Notification

getCreatedTime

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

getUpdatedTime

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

getTitle

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

getLink

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

getApplication

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

unread

public java.lang.Boolean unread()
Specified by:
unread in interface Notification

getTargetObject

public Notification.TargetObject getTargetObject()
Specified by:
getTargetObject in interface Notification

createNotificationList

static ResponseList<Notification> createNotificationList(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