Simple data model representing a single rating data point with a Date and an integer Rating. The constructor accepts year, month (0-based) and day, constructs a DateTime (adds 1 to month), and stores the rating.
#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; }
}