public ListagemInimigos(HaloAPIService _haloAPI) { InitializeComponent(); haloAPI = _haloAPI; CarregarInimigos(); }
public async Task OnGetAsync(string matchId) { MatchId = matchId; var haloApiService = new HaloAPIService("bdd5cbaf0ca34682a8f6b50742747e6f", "https://www.haloapi.com"); PlayerStats = await haloApiService.GetArenaPostGameCarnageReport(Guid.Parse(matchId)); GameTypeName = await haloApiService.GetGameVariant(PlayerStats.GameVariantResourceId.ResourceId.ToString()); Impulses = await haloApiService.GetImpulses(); MedalAwards = await haloApiService.GetMedals(); Maps = await haloApiService.GetMaps(); }
private async void Button_Click(object sender, RoutedEventArgs e) { HaloAPIService api = new HaloAPIService(key); var enemies = await api.GetEnemies(); ListaInimigos.ItemsSource = enemies; //foreach (var match in matches.Results) //{ // textresult.Text += match.MatchDuration; // textresult.Text += Environment.NewLine; //} //foreach (var item in matches) //{ // textresult.Text += item.ToString(); //} }
public void SetUp() { HaloApiService = new HaloAPIService("c1a6f9ae014644aca7d2887258b292d5"); CacheManager.RemoveAll(); }
public void SetUp() { HaloApiService = new HaloAPIService("YOURTOKENHERE"); CacheManager.RemoveAll(); }
public void SetUp() { HaloApiService = new HaloAPIService("17fb8702802545d386763fc2279454aa"); SingletonCacheManager.Instance.RemoveAll(); }
public void Default_DoesntThrowException() { Assert.DoesNotThrow(() => _haloApiService = new HaloAPIService("TOKEN")); }
public UserModel(ILogger <UserModel> logger) { _logger = logger; haloAPIService = new HaloAPIService("bdd5cbaf0ca34682a8f6b50742747e6f", "https://www.haloapi.com"); }