public interface

PullRequestCommentActivity

implements PullRequestActivity
com.atlassian.bitbucket.pull.PullRequestCommentActivity

Class Overview

A PullRequestActivity representing a comment action made on the contents of the pull request.

See Also

Summary

Public Methods
@Nonnull Comment getComment()
@Nonnull CommentAction getCommentAction()
@Deprecated @Nullable PullRequestDiffCommentAnchor getCommentAnchor()
This method is deprecated. in 4.11 to be removed in 5.0. The Comment API is going through a maintenance cycle. For more details see the API Changelog
@Nullable Diff getDiff()
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.activity.Activity
From interface com.atlassian.bitbucket.pull.PullRequestActivity

Public Methods

@Nonnull public Comment getComment ()

Returns
  • the comment associated with this activity.

@Nonnull public CommentAction getCommentAction ()

Returns
  • the comment action on the comment.

@Deprecated @Nullable public PullRequestDiffCommentAnchor getCommentAnchor ()

This method is deprecated.
in 4.11 to be removed in 5.0. The Comment API is going through a maintenance cycle. For more details see the API Changelog

Returns
  • the anchor of the comment, or null if this is a general comment not anchored to specific contents of the pull request.

@Nullable public Diff getDiff ()

Returns
  • the diff of the contents that the comment is anchored to, or null if this is a general comment or a comment not associated with contents changed as part of this pull request (e.g. a file comment).