public GamesSocket(IGameDAO dao, WebSocketServer server) { this.server = server; gameDAO = dao; gameDAO.PlayersUpdated += OnPlayersUpdate; gameDAO.GameDeleted += OnGameDelete; }
public static Game GetNextGame() { IGameDAO pdr = DAOFactory.GetGameDAO(); var result = pdr.GetNextGame(); return(result); }
public TransactionsController(IGameDAO gameDao, IUserDAO userDao, ITransactionDAO transactDao, IStockDAO stockDao) { this.gameDao = gameDao; this.userDao = userDao; this.transactionDao = transactDao; this.stockDao = stockDao; }
public GamesController(IGameDAO gameDao, IUserDAO userDao, ITransactionDAO transactionDao, IOwnedStocksHelper ownedHelper, IStockHistoryAPIDAO stockHistoryAPIDao) { this.gameDao = gameDao; this.userDao = userDao; this.transactionDao = transactionDao; this.ownedHelper = ownedHelper; this.stockHistoryAPIDao = stockHistoryAPIDao; }
public ScheduledJobs(IUserDAO userDao, IGameDAO gameDao, ITransactionDAO transactionDao, IOwnedStocksHelper ownedHelper, IStockAPIDAO stockAPIDao, IStockDAO stockDao, IStockHistoryAPIDAO stockHistoryAPIDao) { this.userDao = userDao; this.gameDao = gameDao; this.transactionDao = transactionDao; this.ownedHelper = ownedHelper; this.stockAPIDao = stockAPIDao; this.stockDao = stockDao; this.stockHistoryAPIDao = stockHistoryAPIDao; }
public StocksController(IGameDAO gameDao, IUserDAO userDao, ITransactionDAO transactDao, IStockAPIDAO stockAPIDao, IStockDAO stockDao, IOwnedStocksHelper ownedHelper) { this.userDao = userDao; this.stockDao = stockDao; this.ownedHelper = ownedHelper; // TODO: Determine if these properties are needed with later refactoring this.gameDao = gameDao; this.transactDao = transactDao; this.stockAPIDao = stockAPIDao; }
public void AttachAPI(WebSocketServer server, IGameDAO gameDAO, string routePath) { server.AddWebSocketService(routePath, () => new GamesSocket(gameDAO, server)); }
public HomeController(IGameDAO gameDao) { this.gameDao = gameDao; }
public GameController(IGameDAO dao) { gameDAO = dao; }
public GameSocket(Game game, IGameDAO gameDAO) { this.Game = game; this.gameDAO = gameDAO; }