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.ObjectThis 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.StringNEWLINENew line in a comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetText()Returns the comment text.DateTimegetTimestamp()Returns the timestamp of the comment.UC4UserNamegetUser()Returns the name of the UC4 user which made the comment.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-