Code/Entities/Game/Opponent.cs

A simple data model representing an opponent in an ongoing game. It contains three public properties: Id, Rating, and Username.

#nullable enable annotations

namespace LichessNET.Entities.Game;

/// <summary>
/// All opponent data sent with ongoing games
/// </summary>
public class Opponent
{
    public string Id { get; set; }
    public int Rating { get; set; }
    public string Username { get; set; }
}