2 * Copyright (c) 2017-2020. 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.io.Serializable;
21 import com.google.gson.annotations.Expose;
22 import com.google.gson.annotations.SerializedName;
24 import org.hedgecode.snooker.api.Event;
25 import org.hedgecode.snooker.api.Player;
26 import org.hedgecode.snooker.api.Seeding;
29 * Seeding Entity to JSON deserialize.
31 * @author Dmitry Samoshin aka gotty
33 public class JsonSeeding extends JsonIdEntity implements Seeding, Serializable {
35 private static final long serialVersionUID = -9182126924854384725L;
37 @SerializedName("EventID")
41 @SerializedName("PlayerID")
44 private Player player;
45 @SerializedName("Seeding")
52 public int eventId() {
57 public Event event() {
61 public void setEvent(Event event) {
62 if (event != null && eventId == event.eventId())
67 public int playerId() {
72 public Player player() {
76 public void setPlayer(Player player) {
77 if (player != null && playerId == player.playerId())
82 public int seeding() {