You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
//
|
|
// UserDataManager.swift
|
|
//
|
|
//
|
|
// Created by Emre on 29/12/2023.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public protocol UserDataManager {
|
|
func getBets(withIndex index: Int, withCount count: Int) -> [Bet]
|
|
func getBetsOver(completion: @escaping ([BetDetail]) -> Void)
|
|
func addBet(bet: Bet, completion : @escaping (Int)-> ())
|
|
func addFriend(username: String, completion : @escaping (Int)-> ())
|
|
func removeFriend(username: String, completion : @escaping (Int)-> ())
|
|
func getFriends(completion: @escaping ([User]) -> Void)
|
|
func getRequests(completion: @escaping ([User]) -> Void)
|
|
func getUsers(withName name: String, completion: @escaping ([User]) -> Void)
|
|
func getGifts(completion : @escaping (Int, Int)-> ())
|
|
func getOldBets(withIndex index: Int, withCount count: Int, completion: @escaping ([BetDetail]) -> Void)
|
|
func getCurrentBets(withIndex index: Int, withCount count: Int, completion: @escaping ([BetDetail]) -> Void)
|
|
func addParticipation(withId id: String, withAnswer answer: String, andStake stake: Int, completion : @escaping (Int)-> ())
|
|
func addResponse(withIdBet id: String, andResponse responseBet: String)
|
|
}
|