Freundschaftsspiele korrigiert
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 52s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 52s
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user