public static async Task<IChampion> GetChampionStaticInfosAsync( this IHasChampionId hasChampionId, ChampDataEnum? champData = null, RegionEnum? region = null, LanguageEnum? languageCode = null, string dataDragonVersion = null) { if (hasChampionId == null) throw new ArgumentNullException("hasChampionId"); var staticService = new StaticService(hasChampionId.ApiConfiguration); return await staticService.GetChampionAsync( hasChampionId.ChampionId, champData, region, languageCode, dataDragonVersion); }
public static async Task <IChampion> GetChampionStaticInfosAsync( this IHasChampionId hasChampionId, ChampDataEnum?champData = null, RegionEnum?region = null, LanguageEnum?languageCode = null, string dataDragonVersion = null) { if (hasChampionId == null) { throw new ArgumentNullException("hasChampionId"); } var staticService = new StaticService(hasChampionId.ApiConfiguration); return(await staticService.GetChampionAsync( hasChampionId.ChampionId, champData, region, languageCode, dataDragonVersion)); }