Kunc.RiotGames.Lol.DataDragon
0.2.0
Prefix Reserved
dotnet add package Kunc.RiotGames.Lol.DataDragon --version 0.2.0
NuGet\Install-Package Kunc.RiotGames.Lol.DataDragon -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kunc.RiotGames.Lol.DataDragon" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kunc.RiotGames.Lol.DataDragon --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kunc.RiotGames.Lol.DataDragon, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Kunc.RiotGames.Lol.DataDragon as a Cake Addin #addin nuget:?package=Kunc.RiotGames.Lol.DataDragon&version=0.2.0 // Install Kunc.RiotGames.Lol.DataDragon as a Cake Tool #tool nuget:?package=Kunc.RiotGames.Lol.DataDragon&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Kunc.RiotGames.Lol.DataDragon
Simple client for League of Legends DataDragon.
Features
- Caching
- Support for
"latest"
version
How to Use
ILolDataDragon lolDataDragon = LolDataDragon.Create();
int count = 5;
var language = "en_US";
var versions = await lolDataDragon.GetVersionsAsync();
var lastVersion = versions[0];
Dictionary<string, ChampionDto> champions = await lolDataDragon.GetChampionsAsync(lastVersion, language);
// or
// Dictionary<string, ChampionDto> champions = await lolDataDragon.GetChampionsAsync("latest", language);
Console.WriteLine($"Top {count} champions with the biggest attack range:");
foreach (var champion in champions.Values.OrderByDescending(c => c.Stats.AttackRange).Take(count))
{
Console.WriteLine($"{champion.Name} {champion.Stats.AttackRange}");
}
Disclaimer
Kunc.RiotGames.Lol.DataDragon
isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Kunc.RiotGames.Core (>= 0.1.6)
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.