Class DeclarePlayerRequest

All Implemented Interfaces:
ClientEvent, Serializable

public class DeclarePlayerRequest extends ClientRequest
Represents a Client triying to set its nickname after a successful connection to the server.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • nickname

      private final String nickname
  • Constructor Details

    • DeclarePlayerRequest

      public DeclarePlayerRequest(String nickname)
      Construct the request
      Parameters:
      nickname - the nickname the user wishes to set
  • Method Details

    • getNickname

      public String getNickname()
      Get the nickname the user selected
      Returns:
      the nickname of the user