Entity model class for a Lichess challenge. It defines properties like Id, Url, Status, Challenger and DestUser (both Challenger type), Variant, Rated, Speed, TimeControl, Color, FinalColor and Direction.
#nullable enable annotations
using LichessNET.Entities.Game;
namespace LichessNET.Entities.Social;
public class Challenge
{
public string Id { get; set; }
public string Url { get; set; }
public string Status { get; set; }
public Challenger Challenger { get; set; }
public Challenger DestUser { get; set; }
public Variant Variant { get; set; }
public bool Rated { get; set; }
public string Speed { get; set; }
public TimeControl TimeControl { get; set; }
public string Color { get; set; }
public string FinalColor { get; set; }
public string Direction { get; set; }
}