[LIB-13] Package restructuring
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / json / chessbomb / JSONPlayer.java
1 /*
2  * Copyright (c) 2019-2020. Developed by Hedgecode.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.hedgecode.chess.scanner.json.chessbomb;
18
19 import com.google.gson.annotations.SerializedName;
20
21 import org.hedgecode.chess.scanner.format.chessbomb.Player;
22
23 /**
24  * JSONPlayer
25  *
26  * @author Dmitry Samoshin aka gotty
27  */
28 public class JSONPlayer implements Player {
29
30     @SerializedName("id")
31     private int id;
32
33     @SerializedName("name")
34     private String name;
35
36     @SerializedName("firstName")
37     private String firstName;
38
39     @SerializedName("lastName")
40     private String lastName;
41
42     @SerializedName("fideId")
43     private int fideId;
44
45     @SerializedName("elo")
46     private int elo;
47
48     @SerializedName("title")
49     private String title;
50
51     JSONPlayer() {
52     }
53
54     @Override
55     public int id() {
56         return id;
57     }
58
59     @Override
60     public String name() {
61         return name;
62     }
63
64     @Override
65     public String firstName() {
66         return firstName;
67     }
68
69     @Override
70     public String lastName() {
71         return lastName;
72     }
73
74     @Override
75     public int fideId() {
76         return fideId;
77     }
78
79     @Override
80     public int elo() {
81         return elo;
82     }
83
84     @Override
85     public String title() {
86         return title;
87     }
88
89 }