Package in.cs699.tensors.delagram.entity
Class Comment
- java.lang.Object
-
- in.cs699.tensors.delagram.entity.Comment
-
public class Comment extends Object
A Java POJO to represent a comment object- Author:
- swaroop_nath
-
-
Constructor Summary
Constructors Constructor Description Comment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCommentId()
Getter method for comment idString
getCommentorId()
Getter method for the user id who commentedString
getCommentText()
Getter method for the text in the commentString
getTimestamp()
Getter method for the time at which the comment was madevoid
setCommentId(String commentId)
Setter method for comment idvoid
setCommentor(String commentorId)
Setter method for the user id who commentedvoid
setCommentText(String commentText)
Setter method for the text in the commentvoid
setTimestamp(String timestamp)
Setter method for the time at which the comment was made
-
-
-
Method Detail
-
getCommentId
public String getCommentId()
Getter method for comment id- Returns:
- Returns the comment id
-
setCommentId
public void setCommentId(String commentId)
Setter method for comment id- Parameters:
commentId
- The id that is to be set
-
getCommentorId
public String getCommentorId()
Getter method for the user id who commented- Returns:
- Returns the user id
-
setCommentor
public void setCommentor(String commentorId)
Setter method for the user id who commented- Parameters:
commentorId
- The id of the user who commented
-
getCommentText
public String getCommentText()
Getter method for the text in the comment- Returns:
- Returns the text
-
setCommentText
public void setCommentText(String commentText)
Setter method for the text in the comment- Parameters:
commentText
- The text in the comment
-
getTimestamp
public String getTimestamp()
Getter method for the time at which the comment was made- Returns:
- Returns a stringified version of the time. Refer
EnvironmentConfigurer
for the format.
-
setTimestamp
public void setTimestamp(String timestamp)
Setter method for the time at which the comment was made- Parameters:
timestamp
- The stringified version of the time. ReferEnvironmentConfigurer
for the format.
-
-