Code/Entities/Stats/GameCounts.cs

POCO class representing a user's game count breakdown as returned by the Lichess API. It exposes integer properties like All, Rated, Ai, Draw, Loss, Win and several variants (H suffix), plus counters like Bookmark, Playing, Import and Me.

#nullable enable annotations

namespace LichessNET.Entities.Stats;

/// <summary>
///     This class contains the game counts of a user in the structure fetched from the lichess API
/// </summary>
public class GameCounts
{
    public int All { get; set; }
    public int Rated { get; set; }
    public int Ai { get; set; }
    public int Draw { get; set; }
    public int DrawH { get; set; }
    public int Loss { get; set; }
    public int LossH { get; set; }
    public int Win { get; set; }
    public int WinH { get; set; }
    public int Bookmark { get; set; }
    public int Playing { get; set; }
    public int Import { get; set; }
    public int Me { get; set; }
}