org.springframework.social.facebook.api
Class Comment

java.lang.Object
  extended by org.springframework.social.facebook.api.Comment

public class Comment
extends java.lang.Object

Model class representing a comment.


Constructor Summary
Comment(java.lang.String id, Reference from, java.lang.String message, java.util.Date createdTime)
          Constructs a Comment object.
 
Method Summary
 java.util.Date getCreatedTime()
          The time the comment was created.
 Reference getFrom()
          A reference to the user who posted the comment.
 java.lang.String getId()
          The comment's Graph API object ID
 java.util.List<Reference> getLikes()
          A list of references to users who liked this comment.
 int getLikesCount()
          The number of users who like this comment.
 java.lang.String getMessage()
          The text of the comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(java.lang.String id,
               Reference from,
               java.lang.String message,
               java.util.Date createdTime)
Constructs a Comment object.

Parameters:
id - the comment's Graph API ID
from - the author of the comment
message - the comment text
createdTime - the creation time of the comment
Method Detail

getId

public java.lang.String getId()
The comment's Graph API object ID


getMessage

public java.lang.String getMessage()
The text of the comment


getCreatedTime

public java.util.Date getCreatedTime()
The time the comment was created.


getFrom

public Reference getFrom()
A reference to the user who posted the comment.


getLikes

public java.util.List<Reference> getLikes()
A list of references to users who liked this comment. May be null, as Facebook often sends only a count of likes. In some cases (such as a comment on a checkin) the likes will be a list of references.


getLikesCount

public int getLikesCount()
The number of users who like this comment.