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                
#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                

Kunc.RiotGames.Lol.DataDragon

Nuget

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 128 8/13/2024
0.1.4 94 6/28/2024
0.1.3 111 6/18/2024
0.1.2 90 6/2/2024
0.1.1 125 4/15/2024