// // MonthData.swift // PadelClub // // Created by Razmig Sarkissian on 18/04/2024. // import Foundation import SwiftUI import LeStorage @Observable final public class MonthData: BaseMonthData { public init(monthKey: String) { super.init() self.monthKey = monthKey self.creationDate = Date() } required init(from decoder: Decoder) throws { try super.init(from: decoder) } required public init() { super.init() } public func total() -> Int { return (maleCount ?? 0) + (femaleCount ?? 0) } }