io.github.pidoveproject.showdown.protocol.server.tournament.BracketData.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-showdown-api_3 Show documentation
Show all versions of scala-showdown-api_3 Show documentation
A Scala wrapper of Pokemon Showdown's API
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