facebook4j.internal.json
Class CommentJSONImpl

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

final class CommentJSONImpl
extends FacebookResponseImpl
implements Comment, 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.lang.Boolean canRemove
           
private  java.util.Date createdTime
           
private  Category from
           
private  java.lang.String id
           
private  java.lang.Boolean isUserLikes
           
private  java.lang.Integer likeCount
           
private  java.lang.String message
           
private static long serialVersionUID
           
 
Constructor Summary
CommentJSONImpl(HttpResponse res, Configuration conf)
           
CommentJSONImpl(JSONObject json)
           
 
Method Summary
 java.lang.Boolean canRemove()
           
(package private) static ResponseList<Comment> createCommentList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getCreatedTime()
           
 Category getFrom()
           
 java.lang.String getId()
           
 java.lang.Integer getLikeCount()
           
 java.lang.String getMessage()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isUserLikes()
           
 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

message

private java.lang.String message

canRemove

private java.lang.Boolean canRemove

createdTime

private java.util.Date createdTime

likeCount

private java.lang.Integer likeCount

isUserLikes

private java.lang.Boolean isUserLikes
Constructor Detail

CommentJSONImpl

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

CommentJSONImpl

CommentJSONImpl(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 Comment

getFrom

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

getMessage

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

canRemove

public java.lang.Boolean canRemove()
Specified by:
canRemove in interface Comment

getCreatedTime

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

getLikeCount

public java.lang.Integer getLikeCount()
Specified by:
getLikeCount in interface Comment

isUserLikes

public java.lang.Boolean isUserLikes()
Specified by:
isUserLikes in interface Comment

createCommentList

static ResponseList<Comment> createCommentList(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