Package com.uc4.communication.requests
Class GetComments.Comment
- java.lang.Object
-
- com.uc4.communication.requests.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()
-
-
-
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 classjava.lang.Object
-
-