Code/Entities/Social/RatingDataPoint.cs

A simple data model representing a rating data point with a Date and an integer Rating. The constructor builds the Date from year, month, and day, adjusting the month by adding 1.

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