public class CommentRequestBody extends FeedbackRequestBody
CommentRequestBody provides a structure for passing a comment as a request body over a REST API.
  • Constructor Details

    • CommentRequestBody

      public CommentRequestBody()
      Default constructor
    • CommentRequestBody

      public CommentRequestBody(CommentRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getCommentType

      public CommentType getCommentType()
      Return the type of comment.
      Returns:
      string
    • setCommentType

      public void setCommentType(CommentType commentType)
      Set up the type of comment.
      Parameters:
      commentType - string
    • getCommentText

      public String getCommentText()
      Return the comment content.
      Returns:
      string description
    • setCommentText

      public void setCommentText(String commentText)
      Set up the comment content.
      Parameters:
      commentText - text.
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class FeedbackRequestBody
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class FeedbackRequestBody
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class FeedbackRequestBody
      Returns:
      int hash code