Sisa.Panel
3.0.0
dotnet add package Sisa.Panel --version 3.0.0
NuGet\Install-Package Sisa.Panel -Version 3.0.0
<PackageReference Include="Sisa.Panel" Version="3.0.0" />
<PackageVersion Include="Sisa.Panel" Version="3.0.0" />
<PackageReference Include="Sisa.Panel" />
paket add Sisa.Panel --version 3.0.0
#r "nuget: Sisa.Panel, 3.0.0"
#:package Sisa.Panel@3.0.0
#addin nuget:?package=Sisa.Panel&version=3.0.0
#tool nuget:?package=Sisa.Panel&version=3.0.0
SisaPanelClient
A C# client library for interacting with the SISA CSO game panel at panel.lan-game.com. It provides async methods to fetch and parse data from various pages of the panel.
Installation
Add the library to your project (e.g., via NuGet or by referencing the compiled DLL).
Usage
Create a client
You can create an instance of SisaPanelClient with or without a custom HttpClient.
The parameterless constructor creates a new HttpClient with the base address already set.
using Sisa.Panel;
// Using the default HttpClient
using var client = new SisaPanelClient();
// Or pass your own HttpClient (all default headers will be cleared)
var httpClient = new HttpClient();
using var client = new SisaPanelClient(httpClient);
Call methods
All methods are asynchronous and accept an optional CancellationToken.
Here are some examples:
// Current contest information
var contest = await client.GetContestAsync();
// Contest history (page 1, 20 entries per page)
var history = await client.GetContestHistoryAsync(page: 1, view: 20);
// Bans list
var bans = await client.GetBansAsync(page: 1, view: 20);
// Chat bans list
var chatBans = await client.GetChatBansAsync();
// Chat log for today (default date is current date)
var chatLog = await client.GetChatlogAsync();
// Admins list
var admins = await client.GetAdminsAsync();
// Server live status
var liveStatus = await client.GetLiveAsync();
// Clans list
var clans = await client.GetClansAsync();
// Detailed clan information by ID
var clan = await client.GetClanAsync(123);
// Player statistics (page 1, 50 per page)
var playerStats = await client.GetPlayerStatisticsAsync();
// General weapon statistics
var weaponStats = await client.GetWeaponStatisticsAsync();
// Statistics for a specific weapon (wid)
var weaponStatEntries = await client.GetWeaponStatisticsAsync(456);
// Top human players statistics
var humanTop = await client.GetHumanTopPlayersAsync();
// Top zombie players statistics
var zombieTop = await client.GetZombieTopPlayersAsync();
// Map statistics
var mapStats = await client.GetMapStatisticsAsync();
// Player information by UID
var player = await client.GetPlayerAsync(789);
// Search players by name (or by Steam ID with searchByName: false)
var searchResults = await client.SearchAsync("playerName", searchByName: true);
Error handling
ArgumentException– thrown when a parameter is invalid (e.g., non-positive page/view/ID).InvalidOperationException– thrown when the requested data cannot be found (e.g., invalid page parameters or non-existent clan/player).HttpRequestException– thrown on network or HTTP errors.
Always handle these exceptions appropriately.
Disposal
SisaPanelClient implements IDisposable. Dispose it when you are done to release the underlying HttpClient and browsing context.
using var client = new SisaPanelClient();
// ... use client ...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- AngleSharp (>= 1.10.4)
-
net11.0
- AngleSharp (>= 1.10.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
big update