facebook4j.internal.json
Class MessageJSONImpl

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

final class MessageJSONImpl
extends FacebookResponseImpl
implements Message, 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  IdNameEntity from
           
private  java.lang.String id
           
private  java.lang.String message
           
private static long serialVersionUID
           
private  java.util.List<IdNameEntity> to
           
private  java.lang.Integer unread
           
private  java.lang.Integer unseen
           
private  java.util.Date updatedTime
           
 
Constructor Summary
MessageJSONImpl(HttpResponse res, Configuration conf)
           
MessageJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static InboxResponseList<Message> createInboxMessageList(HttpResponse res, Configuration conf)
           
(package private) static ResponseList<Message> createMessageList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 PagableList<Comment> getComments()
           
 java.util.Date getCreatedTime()
           
 IdNameEntity getFrom()
           
 java.lang.String getId()
           
 java.lang.String getMessage()
           
 java.util.List<IdNameEntity> getTo()
           
 java.lang.Integer getUnread()
           
 java.lang.Integer getUnseen()
           
 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 IdNameEntity from

to

private java.util.List<IdNameEntity> to

message

private java.lang.String message

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

comments

private PagableList<Comment> comments

unread

private java.lang.Integer unread

unseen

private java.lang.Integer unseen
Constructor Detail

MessageJSONImpl

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

MessageJSONImpl

MessageJSONImpl(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 Message

getFrom

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

getTo

public java.util.List<IdNameEntity> getTo()
Specified by:
getTo in interface Message

getMessage

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

getCreatedTime

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

getUpdatedTime

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

getComments

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

getUnread

public java.lang.Integer getUnread()
Specified by:
getUnread in interface Message

getUnseen

public java.lang.Integer getUnseen()
Specified by:
getUnseen in interface Message

createMessageList

static ResponseList<Message> createMessageList(HttpResponse res,
                                               Configuration conf)
                                        throws FacebookException
Throws:
FacebookException

createInboxMessageList

static InboxResponseList<Message> createInboxMessageList(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