/// <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> /// <param name="value">specific Stats you want (usage : Stats.XXX)</param> public async Task <StatModel> GetPlayerStatsValue(string playerName, Region region = Region.AGG, Mode mode = Mode.All, string value = null) { if (string.IsNullOrEmpty(playerName)) { throw new ArgumentException("Player name cannot be empty."); } return(await _httpRequester.RequestAsyncV(playerName, region, mode, value).ConfigureAwait(false)); }