Exemple #1
0
 /// <summary>
 /// Get matches for a specific player, for specific gamemodes, and paginated
 /// </summary>
 /// <param name="gamerTag">Players gamertag</param>
 /// <param name="gameMode">Any gamemodes to filter by</param>
 /// <param name="start">Start of result set</param>
 /// <param name="count">Count of results at any one time</param>
 /// <returns></returns>
 public async Task <PlayerMatches> GetMatchesForPlayer(string gamerTag, GameMode gameMode, int start = 0, int count = 25)
 {
     if (string.IsNullOrEmpty(gamerTag))
     {
         throw new HaloAPIException(CommonErrorMessages.InvalidGamerTag);
     }
     return(await _responseProcessor.ProcessRequest <PlayerMatches>(Endpoints.Stats.GetMatchesForPlayer(gamerTag, gameMode, start, count), StatCacheExpiry));
 }
Exemple #2
0
 public async Task <HW2Result <CampaignContentItem> > GetCampaignLevels(int startAt = 0, bool bustCache = false)
 {
     return(await _responseProcessor.ProcessRequest <HW2Result <CampaignContentItem> >(Endpoints.HaloWars2.MetaData.GetCampaignLevels(startAt), _metaCacheExpiry, bustCache));
 }