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

io.github.pidoveproject.showdown.protocol.server.tournament.BracketData.scala Maven / Gradle / Ivy

The newest version!
package io.github.pidoveproject.showdown.protocol.server.tournament

import io.github.iltotore.iron.zioJson.given
import io.github.pidoveproject.showdown.user.Username
import zio.json.*

/**
 * The bracket data of a tournament
 *
 * @param bracketType the type of the bracket
 * @param rootNode the root of the bracket
 * @param users the participants of the tournament
 */
case class BracketData(
    @jsonField("type") bracketType: BracketType,
    rootNode: Option[BracketNode] = None,
    users: Option[List[Username]] = None
) derives JsonDecoder




© 2015 - 2024 Weber Informatics LLC | Privacy Policy