Kunc.RiotGames.Lol.DataDragon 0.11.0

Prefix Reserved
dotnet add package Kunc.RiotGames.Lol.DataDragon --version 0.11.0
                    
NuGet\Install-Package Kunc.RiotGames.Lol.DataDragon -Version 0.11.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.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kunc.RiotGames.Lol.DataDragon" Version="0.11.0" />
                    
Directory.Packages.props
<PackageReference Include="Kunc.RiotGames.Lol.DataDragon" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kunc.RiotGames.Lol.DataDragon --version 0.11.0
                    
#r "nuget: Kunc.RiotGames.Lol.DataDragon, 0.11.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.
#addin nuget:?package=Kunc.RiotGames.Lol.DataDragon&version=0.11.0
                    
Install Kunc.RiotGames.Lol.DataDragon as a Cake Addin
#tool nuget:?package=Kunc.RiotGames.Lol.DataDragon&version=0.11.0
                    
Install Kunc.RiotGames.Lol.DataDragon as a Cake Tool

Kunc.RiotGames.Lol.DataDragon

Nuget

Simple client for League of Legends DataDragon.

Features

  • Caching (by default, only in memory; for persistent cache, register IDistributedCache service)
  • Support for "latest" version (automatically converts the string "latest" to the latest version e.g.:"15.1.1")

How to Use

using Kunc.RiotGames.Lol.DataDragon;
ILolDataDragon lolDataDragon = LolDataDragon.Create();

int count = 5;
var language = "en_US";
var versions = await lolDataDragon.GetVersionsAsync();
var lastVersion = versions[0];
// or
// lastVersion = "latest";

Dictionary<string, ChampionDto> champions = await lolDataDragon.GetChampionsAsync(lastVersion, language);

Console.WriteLine($"Top {count} champions with the largest 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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.11.0 135 10 days ago
0.10.0 126 21 days ago
0.9.0 65 a month ago
0.8.0 62 a month ago
0.7.0 71 2 months ago
0.6.0 59 2 months ago
0.5.0 52 3 months ago
0.4.0 65 4 months ago
0.2.0 140 8 months ago
0.1.4 106 9 months ago
0.1.3 124 9 months ago
0.1.2 100 10 months ago
0.1.1 133 4/15/2024