2 * Copyright (c) 2017. Developed by Hedgecode.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.hedgecode.snooker.json;
19 import java.util.Date;
21 import com.google.gson.annotations.SerializedName;
23 import org.hedgecode.snooker.api.Player;
26 * Player Entity to JSON deserialize.
28 * @author Dmitry Samoshin aka gotty
30 public class JsonPlayer extends JsonIdEntity implements Player {
34 @SerializedName("Type")
36 @SerializedName("FirstName")
37 private String firstName;
38 @SerializedName("MiddleName")
39 private String middleName;
40 @SerializedName("LastName")
41 private String lastName;
42 @SerializedName("TeamName")
43 private String teamName;
44 @SerializedName("TeamNumber")
45 private int teamNumber;
46 @SerializedName("TeamSeason")
47 private int teamSeason;
48 @SerializedName("ShortName")
49 private String shortName;
50 @SerializedName("Nationality")
51 private String nationality;
52 @SerializedName("Sex")
54 @SerializedName("BioPage")
55 private String bioPage;
56 @SerializedName("Born")
58 @SerializedName("Twitter")
59 private String twitter;
60 @SerializedName("SurnameFirst")
61 private boolean surnameFirst;
62 @SerializedName("License")
63 private String license;
64 @SerializedName("Club")
66 @SerializedName("URL")
68 @SerializedName("Photo")
70 @SerializedName("Info")
74 public int playerId() {
84 public String firstName() {
89 public String middleName() {
94 public String lastName() {
99 public String teamName() {
104 public int teamNumber() {
109 public int teamSeason() {
114 public String shortName() {
119 public String nationality() {
124 public String sex() {
129 public String bioPage() {
139 public String twitter() {
144 public boolean surnameFirst() {
149 public String license() {
154 public String club() {
159 public String url() {
164 public String photo() {
169 public String info() {