Coverage Summary for Class: Notification (it.polimi.ingsw.utils.model)
Class | Class, % | Method, % | Line, % |
---|---|---|---|
Notification | 100% (1/ 1) | 100% (3/ 3) | 100% (6/ 6) |
1 package it.polimi.ingsw.utils.model;
2
3 /**
4 * Class used to manage communication between Server Side Classes
5 */
6 public class Notification extends Object {
7 /**
8 * Author of the notification. It equals to player's username
9 */
10 private final String username;
11 /**
12 * Value of the notification
13 */
14 private final String message;
15
16 /**
17 * Notification constructor
18 *
19 * @param username author of this notification
20 * @param input message of the notification
21 */
22 public Notification(String username, String input) {
23 this.username = username;
24 this.message = input;
25 }
26
27 /**
28 * Get notification author
29 *
30 * @return notification author
31 */
32 public String getUsername() {
33 return username;
34 }
35
36 /**
37 * Get notification value
38 *
39 * @return notification value
40 */
41 public String getMessage() {
42 return message;
43 }
44 }