feature/winnings #37
Merged
emre.kartal
merged 4 commits from feature/winnings
into master
10 months ago
@ -0,0 +1,21 @@
|
||||
//
|
||||
// BetResult.swift
|
||||
//
|
||||
//
|
||||
// Created by Emre on 06/06/2024.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public class BetResult: Codable {
|
||||
|
||||
public private(set) var betId: String
|
||||
|
||||
public private(set) var result: String
|
||||
|
||||
public init(betId: String, result: String) {
|
||||
self.betId = betId
|
||||
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