diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/app/commands/lobby/join_lobby/JoinLobbyHandler.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/app/commands/lobby/join_lobby/JoinLobbyHandler.java index 33ca37e..579c281 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/app/commands/lobby/join_lobby/JoinLobbyHandler.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/app/commands/lobby/join_lobby/JoinLobbyHandler.java @@ -13,12 +13,10 @@ import ch.unibas.dmi.dbis.cs108.casono.server.network.protocol.response.dispatch /** * Handler for the `JOIN_LOBBY` command. * - *
- * Resolves the username from the session (requires {@link UserLoggedInCheck}), - * looks up the target lobby and attempts to add the user. On success an - * `+OK` response is dispatched; on failure an appropriate {@link ErrorResponse} - * with one of the error codes `LOBBY_NOT_FOUND`, `USER_NOT_LOGGED_IN` or - * `LOBBY_FULL_OR_ALREADY_IN` is returned. + *
Resolves the username from the session (requires {@link UserLoggedInCheck}), looks up the
+ * target lobby and attempts to add the user. On success an `+OK` response is dispatched; on failure
+ * an appropriate {@link ErrorResponse} with one of the error codes `LOBBY_NOT_FOUND`,
+ * `USER_NOT_LOGGED_IN` or `LOBBY_FULL_OR_ALREADY_IN` is returned.
*/
public class JoinLobbyHandler extends CommandHandler
- * Expected request parameters:
+ * Expected request parameters:
+ *
*
- * The parser builds a {@link JoinLobbyRequest} containing the parsed lobby id
- * and the original request context.
+ * The parser builds a {@link JoinLobbyRequest} containing the parsed lobby id and the original
+ * request context.
*/
public class JoinLobbyParser implements CommandParser
- * Contains the lobby id the client wants to join and inherits the
- * {@link Request} contextual information.
+ * Contains the lobby id the client wants to join and inherits the {@link Request} contextual
+ * information.
*/
public class JoinLobbyRequest extends Request {
private final int id;
@@ -17,7 +16,7 @@ public class JoinLobbyRequest extends Request {
* Create a new {@link JoinLobbyRequest}.
*
* @param context the request context
- * @param id numeric lobby id to join
+ * @param id numeric lobby id to join
*/
public JoinLobbyRequest(RequestContext context, int id) {
super(context);
- *
*
- *