public ChallongeProvider(string apiKey) { this.ApiKey = apiKey; this.Config = new ChallongeConfig(this.ApiKey); this.ApiCaller = new ChallongeHTTPClientAPICaller(Config); DernierTournois = "Aucun tournois."; }
public Example() { InitializeComponent(); string configPath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/challongeCSharpDriver.config"; var data = readIni(configPath); ChallongeConfig config = new ChallongeConfig(data["api_key"]); caller = new ChallongeHTTPClientAPICaller(config); tournaments = new Tournaments(caller); }
private ChallongeClient(string apiKey, string subdomain, DateTime createdAfterDate) { var config = new ChallongeConfig(apiKey); Caller = new ChallongeHTTPClientAPICaller(config); ChallongeTournaments = new ChallongeTournaments(Caller, subdomain); ChallongeMatches = new ChallongeMatches(Caller); CreatedAfterDate = createdAfterDate; LoaderTimer = new Timer(e => LoadNewestData()); Database = new DiscordChallongeDatabase(); }
public MeleeCPUTournament() { string configPath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/challongeCSharpDriver.config"; var data = readIni(configPath); ChallongeConfig config = new ChallongeConfig(data["api_key"]); caller = new ChallongeHTTPClientAPICaller(config); controllers = new DolphinAsyncController[] { new DolphinAsyncController(new vJoyController(1)), new DolphinAsyncController(new vJoyController(2)) }; charactersManager = new CharactersManager(); players = new Players(new List <Player>() { new Player(new PlayerID("Mario"), charactersManager.getCharacter("Mario"), "Mario"), new Player(new PlayerID("Luigi"), charactersManager.getCharacter("Luigi"), "Luigi") }); meleeMenu = new MeleeBoot(controllers).bootToCSSCode(); InitializeComponent(); }