facebook4j.internal.json
Class FriendRequestJSONImpl

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

final class FriendRequestJSONImpl
extends FacebookResponseImpl
implements FriendRequest, 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.util.Date createdTime
           
private  IdNameEntity from
           
private  java.lang.String message
           
private static long serialVersionUID
           
private  IdNameEntity to
           
private  java.lang.Boolean unread
           
 
Constructor Summary
FriendRequestJSONImpl(HttpResponse res, Configuration conf)
           
FriendRequestJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<FriendRequest> createFriendRequestList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getCreatedTime()
           
 IdNameEntity getFrom()
           
 java.lang.String getMessage()
           
 IdNameEntity getTo()
           
 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

from

private IdNameEntity from

to

private IdNameEntity to

createdTime

private java.util.Date createdTime

message

private java.lang.String message

unread

private java.lang.Boolean unread
Constructor Detail

FriendRequestJSONImpl

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

FriendRequestJSONImpl

FriendRequestJSONImpl(JSONObject json)
                throws FacebookException
Throws:
FacebookException
Method Detail

init

private void init(JSONObject json)
           throws FacebookException
Throws:
FacebookException

getFrom

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

getTo

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

getCreatedTime

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

getMessage

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

unread

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

createFriendRequestList

static ResponseList<FriendRequest> createFriendRequestList(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