Class GetComments.Comment

java.lang.Object
com.uc4.communication.requests.GetComments.Comment
Enclosing class:
GetComments

public static class GetComments.Comment extends Object
This class represents a single comment from one user. It includes the text, user name and timestamp of the comment.
  • Field Details

    • NEWLINE

      public static final String NEWLINE
      New line in a comment.
  • Method Details

    • getTimestamp

      public DateTime getTimestamp()
      Returns the timestamp of the comment.
      Returns:
      Date and Time
    • getUser

      public UC4UserName getUser()
      Returns the name of the UC4 user which made the comment.
      Returns:
      User name
    • getText

      public String getText()
      Returns the comment text. The returned String may contain line breaks.
      Returns:
      Comment
    • toString

      public String toString()
      Overrides:
      toString in class Object