Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* |
||
31 | public final class ShowCellRequest implements Packet { |
||
32 | private final int cellId; |
||
33 | |||
34 | public ShowCellRequest(int cellId) { |
||
35 | this.cellId = cellId; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * The shown cell id |
||
40 | */ |
||
41 | public int cellId() { |
||
42 | return cellId; |
||
43 | } |
||
44 | |||
45 | public static final class Parser implements SinglePacketParser<ShowCellRequest> { |
||
46 | @Override |
||
47 | public ShowCellRequest parse(String input) throws ParsePacketException { |
||
48 | return new ShowCellRequest(Integer.parseInt(input)); |
||
49 | } |
||
50 | |||
51 | @Override |
||
52 | public String code() { |
||
53 | return "Gf"; |
||
54 | } |
||
57 |