(fix) Server-Modul
This commit is contained in:
@@ -51,14 +51,5 @@ kotlin {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
|
||||
// val jvmMain by getting {
|
||||
// dependsOn(commonMain)
|
||||
// }
|
||||
//
|
||||
// val wasmJsMain by getting {
|
||||
// dependsOn(commonMain)
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package at.mocode.model
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
/**
|
||||
* Represents a tournament (Turnier) with its details and associated competitions (Bewerbe).
|
||||
* Each tournament can have one or more competitions.
|
||||
*/
|
||||
@Serializable
|
||||
data class Turnier(
|
||||
/** The name of the tournament, e.g. "CSN-C NEU CSNP-C NEU NEUMARKT/M., OÖ" */
|
||||
val name: String,
|
||||
|
||||
/** The date of the tournament as a formatted string, e.g. "7.JUNI 2025" */
|
||||
val datum: String,
|
||||
|
||||
/** Unique identifier for the tournament */
|
||||
val number: Int,
|
||||
|
||||
/** List of competitions (Bewerbe) associated with this tournament */
|
||||
var bewerbe: List<Bewerb>
|
||||
)
|
||||
|
||||
/**
|
||||
* Represents a competition (Bewerb) within a tournament.
|
||||
* A competition has specific details like number, title, class, and optional task.
|
||||
*/
|
||||
@Serializable
|
||||
data class Bewerb(
|
||||
/** Competition number, e.g. 1, 2, etc. */
|
||||
val nummer: Int,
|
||||
|
||||
/** Title of the competition, e.g. "Stilspringprüfung" or "Dressurprüfung" */
|
||||
val titel: String,
|
||||
|
||||
/** Class/level of the competition, e.g. "60 cm" or "Kl. A" */
|
||||
val klasse: String,
|
||||
|
||||
/** Optional task identifier, e.g. "DRA 1" */
|
||||
val task: String?
|
||||
)
|
||||
@@ -18,7 +18,7 @@ enum class CupSerieTypE { CUP_SERIE }
|
||||
@Serializable
|
||||
enum class LizenzKategorieE { REITERLIZENZ, FAHRERLIZENZ, STARTKARTE }
|
||||
@Serializable
|
||||
enum class LizenzTyp { REITER, FAHRER, VOLTIGIERER, WESTERN, WORKING_EQUITATION, POLO, STARTKARTE_ALLG, STARTKARTE_VOLTIGIEREN, STARTKARTE_WESTERN, STARTKARTE_ISLAND, STARTKARTE_FAHREN_JUGEND, STARTKARTE_HORSEBALL, STARTKARTE_POLO, PARAEQUESTRIAN, SONSTIGE }
|
||||
enum class LizenzTypE { REITER, FAHRER, VOLTIGIERER, WESTERN, WORKING_EQUITATION, POLO, STARTKARTE_ALLG, STARTKARTE_VOLTIGIEREN, STARTKARTE_WESTERN, STARTKARTE_ISLAND, STARTKARTE_FAHREN_JUGEND, STARTKARTE_HORSEBALL, STARTKARTE_POLO, PARAEQUESTRIAN, SONSTIGE }
|
||||
|
||||
|
||||
@Serializable
|
||||
@@ -70,4 +70,4 @@ enum class RichterPositionE { C, E, H, M, B, VORSITZ, SEITENRICHTER, SONSTIGE }
|
||||
@Serializable
|
||||
enum class GeschlechtE { M, W, D, UNBEKANNT }
|
||||
@Serializable
|
||||
enum class GeschlechtPferd { HENGST, STUTE, WALLACH, UNBEKANNT }
|
||||
enum class GeschlechtPferdE { HENGST, STUTE, WALLACH, UNBEKANNT }
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package at.mocode.shared.model
|
||||
|
||||
import at.mocode.shared.model.Artikel
|
||||
import at.mocode.shared.enums.NennungsArt
|
||||
import at.mocode.shared.enums.NennungsArtE
|
||||
import at.mocode.shared.serializers.BigDecimalSerializer
|
||||
import at.mocode.shared.serializers.KotlinInstantSerializer
|
||||
import at.mocode.shared.serializers.KotlinLocalDateSerializer
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package at.mocode.shared.stammdaten
|
||||
|
||||
import at.mocode.shared.enums.LizenzTyp
|
||||
import at.mocode.shared.enums.LizenzTypE
|
||||
import at.mocode.shared.enums.SparteE
|
||||
import at.mocode.shared.serializers.KotlinLocalDateSerializer
|
||||
import kotlinx.datetime.LocalDate
|
||||
@@ -8,7 +8,7 @@ import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class LizenzInfo(
|
||||
val lizenzTyp: LizenzTyp,
|
||||
val lizenzTyp: LizenzTypE,
|
||||
val stufe: String?,
|
||||
val sparteE: SparteE?,
|
||||
val gueltigBisJahr: Int?, // Jahr als Int
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package at.mocode.shared.stammdaten
|
||||
|
||||
import at.mocode.shared.enums.GeschlechtPferd
|
||||
import at.mocode.shared.enums.GeschlechtPferdE
|
||||
import at.mocode.shared.serializers.KotlinInstantSerializer
|
||||
import at.mocode.shared.serializers.UuidSerializer
|
||||
import com.benasher44.uuid.Uuid
|
||||
@@ -18,7 +18,7 @@ data class Pferd(
|
||||
var name: String,
|
||||
var lebensnummer: String?,
|
||||
var feiPassNr: String?,
|
||||
var geschlecht: GeschlechtPferd?,
|
||||
var geschlecht: GeschlechtPferdE?,
|
||||
var geburtsjahr: Int?,
|
||||
var rasse: String?,
|
||||
var farbe: String?,
|
||||
|
||||
Reference in New Issue
Block a user