]> git.somenet.org - pub/jan/sbc.git/blob - src/main/java/at/ac/tuwien/sbc/valesriegler/group/actions/TableResponse.java
GITOLITE.txt
[pub/jan/sbc.git] / src / main / java / at / ac / tuwien / sbc / valesriegler / group / actions / TableResponse.java
1 package at.ac.tuwien.sbc.valesriegler.group.actions;
2
3 import java.io.Serializable;
4
5 import at.ac.tuwien.sbc.valesriegler.common.AbstractAction;
6 import at.ac.tuwien.sbc.valesriegler.types.GroupData;
7 import at.ac.tuwien.sbc.valesriegler.types.Table;
8
9 /**
10  * Response to the wish of getting a table to sitdown.
11  * 
12  * @author jan
13  * 
14  */
15 public class TableResponse extends AbstractAction implements Serializable {
16         private final Table table;
17         private final int waiterId;
18
19         public TableResponse(GroupData groupdata, Table table, int waiterId) {
20                 super(groupdata);
21                 this.table = table;
22                 this.waiterId = waiterId;
23         }
24
25         public Table getTable() {
26                 return table;
27         }
28
29         public int getWaiterId() {
30                 return waiterId;
31         }
32
33         @Override
34         public String toString() {
35                 return "TableResponse [table=" + table + ", waiterId=" + waiterId + "]";
36         }
37
38 }