JoinRpg.Common.KogdaIgraClient 2026.9.786

dotnet add package JoinRpg.Common.KogdaIgraClient --version 2026.9.786
                    
NuGet\Install-Package JoinRpg.Common.KogdaIgraClient -Version 2026.9.786
                    
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="JoinRpg.Common.KogdaIgraClient" Version="2026.9.786" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JoinRpg.Common.KogdaIgraClient" Version="2026.9.786" />
                    
Directory.Packages.props
<PackageReference Include="JoinRpg.Common.KogdaIgraClient" />
                    
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 JoinRpg.Common.KogdaIgraClient --version 2026.9.786
                    
#r "nuget: JoinRpg.Common.KogdaIgraClient, 2026.9.786"
                    
#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.
#:package JoinRpg.Common.KogdaIgraClient@2026.9.786
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JoinRpg.Common.KogdaIgraClient&version=2026.9.786
                    
Install as a Cake Addin
#tool nuget:?package=JoinRpg.Common.KogdaIgraClient&version=2026.9.786
                    
Install as a Cake Tool

JoinRpg.Common.KogdaIgraClient

HTTP-клиент к API kogda-igra.ru — календаря ролевых игр.

dotnet add package JoinRpg.Common.KogdaIgraClient

Нужен net11.0, всё лежит в JoinRpg.Common.KogdaIgraClient.

services.AddKogdaIgraClient();
services.Configure<KogdaIgraOptions>(configuration.GetSection("KogdaIgra"));
"KogdaIgra": {
  "HostName": "https://kogda-igra.ru"
}

HostName обязателен: без него любой вызов падает с KogdaIgraConnectException. Для разработки есть https://dev.kogda-igra.ru.

IKogdaIgraApiClient

  • GetGameInfo(int gameId) — карточка игры (KogdaIgraGameInfo: название, даты, регион, мастерская группа, ссылки на сайт и соцсети, код статуса игры Status — 0=OK, 1=Прошла, 3=Отложена, 5=Отменена и т.д., null — API его не вернула). null — игры нет, у неё нет продолжительности или ссылка на сайт не http(s). Удалённая на КогдаИгре игра приходит с данными и IsDeleted = true.
  • GetChangedGamesSince(DateTimeOffset since) — Id и время правки игр, изменённых после since; переадресации и записи без даты пропускаются. Перевод в московское время, которого ждёт API, клиент делает сам.

Ошибки

  • KogdaIgraConnectException — сеть, таймаут или код ответа не 2xx.
  • KogdaIgraParseException — ответ не разобрался или вместо карточки пришла чужая запись; в Id — запрошенная игра (0 для списка изменений).
  • KogdaIgraEmptyResponseException — пустой ответ вместо JSON.
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
2026.9.786 68 11/25/2026
2026.9.760 224 11/22/2026
2026.9.680 511 11/8/2026
2026.9.668 165 11/8/2026
2026.9.651 218 11/7/2026
2026.9.533 683 10/29/2026
2026.9.438 215 10/27/2026
2026.9.363 104 10/22/2026
2026.9.217 190 10/16/2026
2026.8.421 159 10/4/2026
2026.8.383 120 10/4/2026
2026.8.256 136 9/29/2026
2026.8.12 229 9/6/2026
2026.8.0 142 9/2/2026
2026.7.34 135 8/26/2026
2026.7.32 152 8/26/2026
2026.7.14 180 8/24/2026
2026.7.10 140 8/23/2026
2026.5.26 260 8/4/2026
2026.3.87 227 5/12/2026
Loading failed