|
|
|
|
@ -81,6 +81,11 @@ struct FederalTournament: Identifiable, Codable { |
|
|
|
|
var dateFin, dateValidation: Date? |
|
|
|
|
var codePostalEngagement, codeClub: String? |
|
|
|
|
var prixEspece: Int? |
|
|
|
|
var japPhoneNumber: String? |
|
|
|
|
|
|
|
|
|
mutating func updateJapPhoneNumber(phone: String?) { |
|
|
|
|
self.japPhoneNumber = phone |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
init(from decoder: Decoder) throws { |
|
|
|
|
let container = try decoder.container(keyedBy: CodingKeys.self) |
|
|
|
|
@ -249,7 +254,7 @@ struct FederalTournament: Identifiable, Codable { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var japMessage: String { |
|
|
|
|
[nomClub, jugeArbitre?.nom, jugeArbitre?.prenom, courrielEngagement, installation?.telephone].compactMap({$0}).joined(separator: ";") |
|
|
|
|
[nomClub, jugeArbitre?.nom, jugeArbitre?.prenom, courrielEngagement, japPhoneNumber].compactMap({$0}).joined(separator: ";") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func umpireLabel() -> String { |
|
|
|
|
|