Exemple #1
0
 public DataBaseController(SimpleDataBase dataBase = null)
 {
     this.dataBase = dataBase ?? new SimpleDataBase();
     commands      = new List <ICommand>()
     {
         new EndpointInfoCommand(this.dataBase),
         new MatchInfoCommand(this.dataBase),
         new ServersInfoCommand(this.dataBase),
         new ServerStatsCommand(this.dataBase),
         new PlayerStatsCommand(this.dataBase),
         new RecentMatchesCommand(this.dataBase),
         new BestPlayersCommand(this.dataBase),
         new PopularServersCommand(this.dataBase)
     };
 }
 public MatchInfoCommand(SimpleDataBase dataBase)
 {
     this.dataBase = dataBase;
 }
Exemple #3
0
 public EndpointInfoCommand(SimpleDataBase dataBase)
 {
     this.dataBase = dataBase;
 }