예제 #1
0
 /// <summary>
 /// Initialises a <see cref="PUBGStatsClient"/>.
 /// </summary>
 /// <param name="playerName">player name you search</param>
 /// <param name="region">region you search (NA, EU)</param>
 /// <param name="mode">Mode you search (Solo, Duo, solo-fpp)</param>
 public async Task <StatsResponse> GetPlayerStatsAsync(string playerName, Region region = Region.AGG, Mode mode = Mode.All)
 {
     if (string.IsNullOrEmpty(playerName))
     {
         throw new ArgumentException("Player name cannot be empty.");
     }
     return(await _httpRequester.RequestAsyncS(playerName, region, mode).ConfigureAwait(false));
 }