|
|
|
@ -209,9 +209,9 @@ enum FederalTournamentAge: Int, Hashable, Codable, CaseIterable, Identifiable { |
|
|
|
case .senior: |
|
|
|
case .senior: |
|
|
|
return "Senior" |
|
|
|
return "Senior" |
|
|
|
case .a45: |
|
|
|
case .a45: |
|
|
|
return "+45 ans" |
|
|
|
return "45 ans" |
|
|
|
case .a55: |
|
|
|
case .a55: |
|
|
|
return "+55 ans" |
|
|
|
return "55 ans" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -315,6 +315,16 @@ enum TournamentLevel: Int, Hashable, Codable, CaseIterable, Identifiable { |
|
|
|
self.init(rawValue: value) |
|
|
|
self.init(rawValue: value) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var entryFee: Double? { |
|
|
|
|
|
|
|
switch self { |
|
|
|
|
|
|
|
case .unlisted: |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
case .p25: |
|
|
|
|
|
|
|
return 15 |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
return 20 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
func searchRawValue() -> String { |
|
|
|
func searchRawValue() -> String { |
|
|
|
String(describing: self) |
|
|
|
String(describing: self) |
|
|
|
} |
|
|
|
} |
|
|
|
|