2 * Copyright (c) 2017-2019. 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 com.google.gson.annotations.Expose;
20 import com.google.gson.annotations.SerializedName;
22 import org.hedgecode.snooker.api.Event;
23 import org.hedgecode.snooker.api.Player;
24 import org.hedgecode.snooker.api.Seeding;
27 * Seeding Entity to JSON deserialize.
29 * @author Dmitry Samoshin aka gotty
31 public class JsonSeeding extends JsonIdEntity implements Seeding {
33 @SerializedName("EventID")
37 @SerializedName("PlayerID")
40 private Player player;
41 @SerializedName("Seeding")
44 protected JsonSeeding() {
48 public int eventId() {
53 public Event event() {
57 public void setEvent(Event event) {
58 if (event != null && eventId == event.eventId())
63 public int playerId() {
68 public Player player() {
72 public void setPlayer(Player player) {
73 if (player != null && playerId == player.playerId())
78 public int seeding() {