Class Comment


  • public class Comment
    extends java.lang.Object
    This 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.String getComment()
      This returns the comment attribute
      java.lang.String getPlayerId()
      This returns the player ID attribute
      java.lang.String getUsername()
      This returns the player username attribute
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 comment
        username - Username of the player who made this comment
        comment - 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