parent
5d1ea8492a
commit
68345572ef
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5d1ea8492aa6d4be39036165d00016d6951ae91a
|
@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// BetResult.swift
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Emre on 06/06/2024.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
|
||||||
|
public class BetResult: Codable {
|
||||||
|
|
||||||
|
public private(set) var id: String
|
||||||
|
|
||||||
|
public private(set) var result: String
|
||||||
|
|
||||||
|
public init(id: String, result: String) {
|
||||||
|
self.id = id
|
||||||
|
self.result = result
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
//
|
||||||
|
// BetResultDetail.swift
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Emre on 06/06/2024.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
|
||||||
|
public class BetResultDetail: Codable {
|
||||||
|
|
||||||
|
public private(set) var betResult: BetResult
|
||||||
|
|
||||||
|
public private(set) var bet: Bet
|
||||||
|
|
||||||
|
public private(set) var participation: Participation
|
||||||
|
|
||||||
|
public private(set) var amount: Int
|
||||||
|
|
||||||
|
public private(set) var won: Bool
|
||||||
|
|
||||||
|
public init(betResult: BetResult, bet: Bet, participation: Participation, amount: Int, won: Bool) {
|
||||||
|
self.betResult = betResult
|
||||||
|
self.bet = bet
|
||||||
|
self.participation = participation
|
||||||
|
self.amount = amount
|
||||||
|
self.won = won
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue