public async void UsingAsync() { LolApi p = new LolApi(); var champions = await LolApi.StaticApi.StaticDatav3.GetChampionsAsync(ServicePlatform.EUW1, false, null, null, new List <ChampionTag>() { ChampionTag.all }, true); Assert.False(champions.HasError); }
public HomeController() { LolApi = ApiSettings.GetService <LolApi>(); }
public HomeController(LolApi _api) { LolApi = _api; }
private async Task Other_ChampImage(LolApi.Common.Constants.ImageTypes type) { byte[] result; if (type == LolApi.Common.Constants.ImageTypes.Square) result = await LolApi.Test.InternalTester.RequestChampImage(type, txtFieldOne.Text); else result = await LolApi.Test.InternalTester.RequestChampImage(type, txtFieldOne.Text, Convert.ToInt32(txtFieldTwo.Text)); MemoryStream ms = new MemoryStream(result); pbxImageResponse.BackgroundImage = Bitmap.FromStream(ms); }