Freundschaftsspiele korrigiert
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 52s

This commit is contained in:
Torsten Schulz (local)
2026-06-06 12:42:17 +02:00
parent 5727404f88
commit 5194d4582f
22 changed files with 1527 additions and 177 deletions

View File

@@ -2,6 +2,7 @@ package de.tsschulz.tt_tagebuch.shared.api
import de.tsschulz.tt_tagebuch.shared.api.http.AuthedHttpClient
import de.tsschulz.tt_tagebuch.shared.api.models.LeaguePlayerStatDto
import de.tsschulz.tt_tagebuch.shared.api.models.Member
import de.tsschulz.tt_tagebuch.shared.api.models.LeagueTableRowDto
import de.tsschulz.tt_tagebuch.shared.api.models.FriendlyMatchSaveBody
import de.tsschulz.tt_tagebuch.shared.api.models.FriendlyMatchInvitationCreateBody
@@ -56,6 +57,14 @@ class MatchesApi(
return client.http.get("/api/friendly-matches/shared/$clubId").body()
}
suspend fun listFriendlyMembers(clubId: Int): List<Member> {
return client.http.get("/api/friendly-matches/$clubId/members/list").body()
}
suspend fun listSharedFriendlyMembers(clubId: Int, matchId: Int, side: String): List<Member> {
return client.http.get("/api/friendly-matches/shared/$clubId/$matchId/members/$side").body()
}
suspend fun createFriendlyMatch(clubId: Int, body: FriendlyMatchSaveBody): ScheduleMatchDto {
return client.http.post("/api/friendly-matches/$clubId") {
setBody(body)

View File

@@ -100,6 +100,7 @@ data class ScheduleMatchDto(
val homeMatchPoints: Int = 0,
val guestMatchPoints: Int = 0,
val isCompleted: Boolean = false,
val isLocked: Boolean = false,
val pdfUrl: String? = null,
val matchSystem: String? = null,
val singlesCount: Int = 12,