Entities/Social/RatingDataPoint.cs

Simple data model representing a rating data point with a Date and integer Rating. It constructs the Date from year, month, day inputs (month is incremented by one).

#nullable enable annotations

namespace LichessNET.Entities.Social;

public class RatingDataPoint
{
    public RatingDataPoint(int year, int month, int day, int rating)
    {
        Date = new DateTime(year, month + 1, day);
        Rating = rating;
    }

    public DateTime Date { get; set; }
    public int Rating { get; set; }
}