commonMain.ro.dragossusi.sevens.payload.game.GameEndResponse.kt Maven / Gradle / Ivy
package ro.dragossusi.sevens.payload.game
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* sevens-game
*
* Copyright (C) 2020 Rachieru Dragos-Mihai
*
* sevens-game is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* sevens-game is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with sevens-game. If not, see [License](http://www.gnu.org/licenses/) .
*
*/
@Serializable
data class GameEndResponse(
@SerialName("won_points")
val wonPoints: Int?,
@SerialName("won_cards")
val wonCards: Int?,
@SerialName("winner_id")
val winner: Long,
@SerialName("players")
val players: List,
// @SerialName("rounds")
// val rounds: Array
)