Class GetComments.Comment

  • Enclosing class:
    GetComments

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String NEWLINE
      New line in a comment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getText()
      Returns the comment text.
      DateTime getTimestamp()
      Returns the timestamp of the comment.
      UC4UserName getUser()
      Returns the name of the UC4 user which made the comment.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NEWLINE

        public static final java.lang.String NEWLINE
        New line in a comment.
    • Method Detail

      • 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 java.lang.String getText()
        Returns the comment text. The returned String may contain line breaks.
        Returns:
        Comment
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object