Entities/Game/Opponent.cs

Simple data model representing an opponent in an ongoing game, with Id, Rating, and Username properties.

Networking
#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; }
}