Klasse Comment

Alle implementierten Schnittstellen:
HasComments, HasCreatedTime, HasMessage, Serializable

public class Comment extends FacebookType implements HasComments, HasCreatedTime, HasMessage
Represents the Comment Graph API type.
Seit:
1.5
Autor:
Mark Allen
Siehe auch:
  • Konstruktordetails

  • Methodendetails

    • jsonMappingCompleted

      protected void jsonMappingCompleted(JsonMapper jsonMapper)
      Post-JSON-mapping operation that populates the messageTags field "by hand".
      Parameter:
      jsonMapper - The JsonMapper that was used to map to this type.
    • getMessageTags

      Objects tagged in the message (Users, Pages, etc).
      Gibt zurück:
      Objects tagged in the message (Users, Pages, etc).
      Seit:
      1.6.10
    • addMessageTag

      public void addMessageTag(MessageTag messageTag)
    • removeMessageTag

      public void removeMessageTag(MessageTag messageTag)
    • getFrom

      public From getFrom()
      User who posted the comment.
      Gibt zurück:
      User who posted the comment.
    • setFrom

      public void setFrom(From from)
      User who posted the comment.
    • getMessage

      public String getMessage()
      Text contents of the comment.
      Angegeben von:
      getMessage in Schnittstelle HasMessage
      Gibt zurück:
      Text contents of the comment.
    • setMessage

      public void setMessage(String message)
      Text contents of the comment.
    • getCreatedTime

      public Date getCreatedTime()
      Date on which the comment was created.
      Angegeben von:
      getCreatedTime in Schnittstelle HasCreatedTime
      Gibt zurück:
      Date on which the comment was created.
    • setCreatedTime

      public void setCreatedTime(Date createdTime)
      Date on which the comment was created.
    • getLikes

      public Likes getLikes()
      Duplicate mapping for "likes" since FB can return it differently in different situations. -- GETTER -- The likes on this post.

      Sometimes this can be null - check getLikeCount() instead in that case.

      Gibt zurück:
      The likes on this comment.
    • setLikes

      public void setLikes(Likes likes)
      Duplicate mapping for "likes" since FB can return it differently in different situations. -- GETTER -- The likes on this post.

      Sometimes this can be null - check getLikeCount() instead in that case.

    • getReactions

      The reactions for this post.
      Gibt zurück:
      The reactions for this post.
    • setReactions

      public void setReactions(Reactions reactions)
      The reactions for this post.
    • getLikeCount

      public Long getLikeCount()
      The number of likes on this comment.
      Gibt zurück:
      The number of likes on this comment.
      Seit:
      1.6.10
    • setLikeCount

      public void setLikeCount(Long likeCount)
      The number of likes on this comment.
      Seit:
      1.6.10
    • getCommentCount

      public long getCommentCount()
      Number of replies to this comment.
      Gibt zurück:
      Number of replies to this comment
    • setCommentCount

      public void setCommentCount(long commentCount)
      Number of replies to this comment.
    • getCanRemove

      This field is returned only if the authenticated user can remove this comment.
      Gibt zurück:
      This field is returned only if the authenticated user can remove this comment.
      Seit:
      1.6.10
    • setCanRemove

      public void setCanRemove(Boolean canRemove)
      This field is returned only if the authenticated user can remove this comment.
      Seit:
      1.6.10
    • getUserLikes

      This field is returned only if the authenticated user likes this comment
      Gibt zurück:
      This field is returned only if the authenticated user likes this comment.
      Seit:
      1.6.10
    • setUserLikes

      public void setUserLikes(Boolean userLikes)
      This field is returned only if the authenticated user likes this comment
      Seit:
      1.6.10
    • getParent

      public Comment getParent()
      If this comment is a reply, this field returns the parent comment, otherwise no value
      Gibt zurück:
      the parent Comment
      Seit:
      1.6.13
    • setParent

      public void setParent(Comment parent)
      If this comment is a reply, this field returns the parent comment, otherwise no value
      Seit:
      1.6.13
    • getCanComment

      Specifies whether you can reply to this comment
      Gibt zurück:
      can_comment
      Seit:
      1.6.13
    • setCanComment

      public void setCanComment(Boolean canComment)
      Specifies whether you can reply to this comment
      Seit:
      1.6.13
    • getCanHide

      public Boolean getCanHide()
      Whether the viewer can hide this comment
      Gibt zurück:
      can_hide
      Seit:
      1.7.1
    • setCanHide

      public void setCanHide(Boolean canHide)
      Whether the viewer can hide this comment
      Seit:
      1.7.1
    • getCanReplyPrivately

      Whether the viewer can send a private reply to this comment (Page viewers only)
      Gibt zurück:
      Whether the viewer can send a private reply to this comment
    • setCanReplyPrivately

      public void setCanReplyPrivately(Boolean canReplyPrivately)
      Whether the viewer can send a private reply to this comment (Page viewers only)
    • getPrivateReplyConversation

      For comments with private replies, gets conversation between the Page and author of the comment (Page viewers only)
      Gibt zurück:
      conversation between Page and author of the comment
    • setPrivateReplyConversation

      public void setPrivateReplyConversation(Conversation privateReplyConversation)
      For comments with private replies, gets conversation between the Page and author of the comment (Page viewers only)
    • getIsHidden

      public Boolean getIsHidden()
      Whether this comment is hidden. The original poster can still see the comment, along with the page admin and anyone else tagged in the comment
      Gibt zurück:
      is_hidden
      Seit:
      1.7.1
    • setIsHidden

      public void setIsHidden(Boolean isHidden)
      Whether this comment is hidden. The original poster can still see the comment, along with the page admin and anyone else tagged in the comment
      Seit:
      1.7.1
    • getCanLike

      public Boolean getCanLike()
      Whether the viewer can like this comment
      Gibt zurück:
      can_like
    • setCanLike

      public void setCanLike(Boolean canLike)
      Whether the viewer can like this comment
    • getObject

      Parent object this comment was made on.
      Gibt zurück:
      object
      Seit:
      1.7.1
    • setObject

      public void setObject(NamedFacebookType object)
      Parent object this comment was made on.
      Seit:
      1.7.1
    • getPermalinkUrl

      The permanent static URL to the comment
      Gibt zurück:
      permanent static url
    • setPermalinkUrl

      public void setPermalinkUrl(String permalinkUrl)
      The permanent static URL to the comment
    • getComments

      The replies to this comment
      Angegeben von:
      getComments in Schnittstelle HasComments
      Gibt zurück:
      replies
    • setComments

      public void setComments(Comments comments)
      The replies to this comment
    • getAttachment

      Attachment (image) added to a comment. To force Facebook to fill the attachment field you have to fetch the comment with the fields=attachment parameter, otherwise the attachments are null.
      Gibt zurück:
      Attachment on the comment
    • setAttachment

      public void setAttachment(StoryAttachment attachment)
      Attachment (image) added to a comment. To force Facebook to fill the attachment field you have to fetch the comment with the fields=attachment parameter, otherwise the attachments are null.