Coverage Summary for Class: ConnectLobbyRequest (it.polimi.ingsw.Server.Messages.Events.Requests)
Class |
Class, %
|
Method, %
|
Line, %
|
ConnectLobbyRequest |
0%
(0/1)
|
0%
(0/2)
|
0%
(0/3)
|
1 package it.polimi.ingsw.Server.Messages.Events.Requests;
2
3 import java.io.Serial;
4 import java.util.UUID;
5
6 /**
7 * Represents a Client triying to connect to a {@link it.polimi.ingsw.Server.Lobby}
8 */
9 public class ConnectLobbyRequest extends ClientRequest {
10 @Serial
11 private static final long serialVersionUID = 352L;
12
13 private final UUID code;
14
15 /**
16 * Create the request to connect to a lobby.
17 *
18 * @param code the {@link UUID} of the lobby the client wishes to connect to.
19 */
20 public ConnectLobbyRequest(UUID code) {
21 this.code = code;
22 }
23
24 /**
25 * Get the code of the lobby
26 *
27 * @return the {@link it.polimi.ingsw.Server.Lobby}'s {@link UUID} the client wishes to connect to
28 */
29 public UUID getCode() {
30 return code;
31 }
32 }