update club to use the new copy system to receive its broadcast code

sync2
Laurent 10 months ago
parent bdea94f472
commit 780d93dfe2
  1. 9
      PadelClub/Data/Club.swift

@ -12,13 +12,8 @@ import LeStorage
@Observable
final class Club: BaseClub {
override func copyFromServerInstance(_ instance: any Storable) -> Bool {
guard let copy = instance as? Club else { return false }
self.broadcastCode = copy.broadcastCode
// Logger.log("write code: \(self.broadcastCode)")
return true
}
static var copyServerResponse: Bool { return true }
func clubTitle(_ displayStyle: DisplayStyle = .wide) -> String {
switch displayStyle {
case .wide, .title:

Loading…
Cancel
Save