All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ro.dragossusi.sevens.payload.game.NewRoundResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package ro.dragossusi.sevens.payload.game

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ro.dragossusi.sevens.payload.Card

@Serializable
class NewRoundResponse constructor(
    @SerialName("cards")
    val cards: Array,
    @SerialName("players")
    val players: Array,
    @SerialName("starting_player_id")
    val startingPlayerId: Long,
    @SerialName("current_player_id")
    val currentPlayerId: Long,
    @SerialName("round_cards")
    val roundCards: Array,
    @SerialName("won_points")
    val wonPoints: Int?,
    @SerialName("won_cards")
    val wonCards: Int?
) {

    override fun toString(): String {
        return "NewRoundResponse(cards=${cards.contentToString()}, players=$players, startingPlayerId=$startingPlayerId, currentPlayerId=$currentPlayerId, roundCards=${roundCards.contentToString()}, wonPoints=$wonPoints, wonCards=$wonCards)"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy