|
|
|
|
@ -26,7 +26,7 @@ final class PlayerRegistration: BasePlayerRegistration, SideStorable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
init(teamRegistration: String? = nil, firstName: String, lastName: String, licenceId: String? = nil, rank: Int? = nil, paymentType: PlayerPaymentType? = nil, sex: PlayerSexType? = nil, tournamentPlayed: Int? = nil, points: Double? = nil, clubName: String? = nil, ligueName: String? = nil, assimilation: String? = nil, phoneNumber: String? = nil, email: String? = nil, birthdate: String? = nil, computedRank: Int = 0, source: PlayerRegistration.PlayerDataSource? = nil, hasArrived: Bool = false) { |
|
|
|
|
init(teamRegistration: String? = nil, firstName: String, lastName: String, licenceId: String? = nil, rank: Int? = nil, paymentType: PlayerPaymentType? = nil, sex: PlayerSexType? = nil, tournamentPlayed: Int? = nil, points: Double? = nil, clubName: String? = nil, ligueName: String? = nil, assimilation: String? = nil, phoneNumber: String? = nil, email: String? = nil, birthdate: String? = nil, computedRank: Int = 0, source: PlayerRegistration.PlayerDataSource? = nil, hasArrived: Bool = false, coach: Bool = false, captain: Bool = false, registeredOnline: Bool = false, timeToConfirm: Date? = nil, registrationStatus: PlayerRegistration.RegistrationStatus = PlayerRegistration.RegistrationStatus.waiting, paymentId: String? = nil) { |
|
|
|
|
super.init() |
|
|
|
|
self.teamRegistration = teamRegistration |
|
|
|
|
self.firstName = firstName |
|
|
|
|
@ -46,6 +46,12 @@ final class PlayerRegistration: BasePlayerRegistration, SideStorable { |
|
|
|
|
self.computedRank = computedRank |
|
|
|
|
self.source = source |
|
|
|
|
self.hasArrived = hasArrived |
|
|
|
|
self.coach = coach |
|
|
|
|
self.captain = captain |
|
|
|
|
self.registeredOnline = registeredOnline |
|
|
|
|
self.timeToConfirm = timeToConfirm |
|
|
|
|
self.registrationStatus = registrationStatus |
|
|
|
|
self.paymentId = paymentId |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal init(importedPlayer: ImportedPlayer) { |
|
|
|
|
|