org.springframework.social.facebook.api
Class Comment

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

public class Comment
extends FacebookObject

Model class representing a comment.


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

Constructor Detail

Comment

public Comment(String id,
               Reference from,
               String message,
               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 String getId()
The comment's Graph API object ID


getMessage

public String getMessage()
The text of the comment


getCreatedTime

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


getFrom

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


getLikes

public 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.