public interface

PullRequestCommentActivity

implements PullRequestActivity
com.atlassian.stash.pull.PullRequestCommentActivity

Class Overview

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

Summary

Public Methods
@Nonnull Comment getComment()
@Nonnull CommentAction getCommentAction()
@Nullable PullRequestDiffCommentAnchor getCommentAnchor()
@Nullable Diff getDiff()
[Expand]
Inherited Methods
From interface com.atlassian.stash.activity.Activity
From interface com.atlassian.stash.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.

@Nullable public PullRequestDiffCommentAnchor getCommentAnchor ()

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