facebook4j.internal.json
Class NoteJSONImpl

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

final class NoteJSONImpl
extends FacebookResponseImpl
implements Note, 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  PagableList<Comment> comments
           
private  java.util.Date createdTime
           
private  Category from
           
private  java.net.URL icon
           
private  java.lang.String id
           
private  java.lang.String message
           
private static long serialVersionUID
           
private  java.lang.String subject
           
private  java.util.Date updatedTime
           
 
Constructor Summary
NoteJSONImpl(HttpResponse res, Configuration conf)
           
NoteJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Note> createNoteList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 PagableList<Comment> getComments()
           
 java.util.Date getCreatedTime()
           
 Category getFrom()
           
 java.net.URL getIcon()
           
 java.lang.String getId()
           
 java.lang.String getMessage()
           
 java.lang.String getSubject()
           
 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private java.lang.String id

from

private Category from

subject

private java.lang.String subject

message

private java.lang.String message

comments

private PagableList<Comment> comments

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

icon

private java.net.URL icon
Constructor Detail

NoteJSONImpl

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

NoteJSONImpl

NoteJSONImpl(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 Note

getFrom

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

getSubject

public java.lang.String getSubject()
Specified by:
getSubject in interface Note

getMessage

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

getComments

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

getCreatedTime

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

getUpdatedTime

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

getIcon

public java.net.URL getIcon()
Specified by:
getIcon in interface Note

createNoteList

static ResponseList<Note> createNoteList(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