Пример #1
0
 public GamesSocket(IGameDAO dao, WebSocketServer server)
 {
     this.server             = server;
     gameDAO                 = dao;
     gameDAO.PlayersUpdated += OnPlayersUpdate;
     gameDAO.GameDeleted    += OnGameDelete;
 }
Пример #2
0
        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;
        }
Пример #7
0
 public void AttachAPI(WebSocketServer server, IGameDAO gameDAO, string routePath)
 {
     server.AddWebSocketService(routePath, () => new GamesSocket(gameDAO, server));
 }
Пример #8
0
 public HomeController(IGameDAO gameDao)
 {
     this.gameDao = gameDao;
 }
Пример #9
0
 public GameController(IGameDAO dao)
 {
     gameDAO = dao;
 }
Пример #10
0
 public GameSocket(Game game, IGameDAO gameDAO)
 {
     this.Game    = game;
     this.gameDAO = gameDAO;
 }