Entities/Game/Opponent.cs

Simple POCO representing the opponent in an ongoing game. It contains Id, Rating, and Username properties used to deserialize or transport opponent data.

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