Class AddFileCommentRequest

java.lang.Object
com.atlassian.bitbucket.comment.AddCommentRequest
com.atlassian.bitbucket.comment.AddFileCommentRequest
Direct Known Subclasses:
AddLineCommentRequest

public class AddFileCommentRequest extends AddCommentRequest
Request to create or update a file comment.
Since:
5.0
  • Constructor Details

  • Method Details

    • getDiffType

      @Nonnull public CommentThreadDiffAnchorType getDiffType()
      Returns:
      the type of diff the comment is being added on
    • getFromHash

      @Nullable public String getFromHash()
      Returns:
      the fromHash for the diff onto which the comment is to be anchored. A null value will prompt the system to try and resolve the most suitable fromHash which can be null for comments made on a commit which doesn't have a parent (i.e.: initial commits).
    • getPath

      @Nonnull public String getPath()
      Returns:
      the path to the file on which the comment is to be added
    • getSrcPath

      @Nullable public String getSrcPath()
      Returns:
      the path the file on which the comment is to be added used to have
    • getToHash

      @Nullable public String getToHash()
      Returns:
      the toHash for the diff onto which the comment is to be anchored.