commonMain.ro.dragossusi.sevens.payload.game.NewRoundResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payload-jvm Show documentation
Show all versions of payload-jvm Show documentation
Payload data used in sevens
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)"
}
}