Class Comment
- java.lang.Object
-
- com.cmput301w23t09.qrhunter.comment.Comment
-
public class Comment extends java.lang.ObjectThis is a class that stores a comment that a player made
-
-
Constructor Summary
Constructors Constructor Description Comment(java.lang.String playerId, java.lang.String username, java.lang.String comment)This initializes a Comment with a comment and the player who made it
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()This returns the comment attributejava.lang.StringgetPlayerId()This returns the player ID attributejava.lang.StringgetUsername()This returns the player username attribute
-
-
-
Constructor Detail
-
Comment
public Comment(java.lang.String playerId, java.lang.String username, java.lang.String comment)This initializes a Comment with a comment and the player who made it- Parameters:
playerId- Player id of the player who made this commentusername- Username of the player who made this commentcomment- Comment content
-
-
Method Detail
-
getComment
public java.lang.String getComment()
This returns the comment attribute- Returns:
- Return the comment made by the player
-
getPlayerId
public java.lang.String getPlayerId()
This returns the player ID attribute- Returns:
- Return the ID of the player that made the comment
-
getUsername
public java.lang.String getUsername()
This returns the player username attribute- Returns:
- Return the username of player that made the comment
-
-