facebook4j.internal.json
Class MessageJSONImpl
java.lang.Object
facebook4j.internal.json.FacebookResponseImpl
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
MessageJSONImpl
MessageJSONImpl(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
MessageJSONImpl
MessageJSONImpl(JSONObject json)
throws FacebookException
- Throws:
FacebookException
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