2 * Copyright (c) 2019-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.chess.scanner.json.chessbomb;
19 import java.util.Date;
21 import com.google.gson.annotations.SerializedName;
23 import org.hedgecode.chess.scanner.format.chessbomb.Game;
24 import org.hedgecode.chess.scanner.format.chessbomb.Player;
29 * @author Dmitry Samoshin aka gotty
31 public class JSONGame implements Game {
36 @SerializedName("roomId")
39 @SerializedName("slug")
42 @SerializedName("roundSlug")
43 private String roundSlug;
45 @SerializedName("whiteId")
48 @SerializedName("blackId")
51 @SerializedName("whiteElo")
54 @SerializedName("blackElo")
57 @SerializedName("startAt")
60 @SerializedName("endAt")
63 @SerializedName("updateAt")
64 private Date updateAt;
66 @SerializedName("result")
67 private String result;
69 @SerializedName("table")
72 @SerializedName("board")
75 @SerializedName("white")
76 private JSONPlayer white;
78 @SerializedName("black")
79 private JSONPlayer black;
95 public String slug() {
100 public String roundSlug() {
105 public int whiteId() {
110 public int blackId() {
115 public int whiteElo() {
120 public int blackElo() {
125 public Date startAt() {
130 public Date endAt() {
135 public Date updateAt() {
140 public String result() {
155 public Player white() {
160 public Player black() {