Model for a social timeline entry. It stores a Type string, typed Data deserialized with TimelineEventDataConverter, and a Unix-milliseconds Date, plus an EventTime property computed from Date.
#nullable enable annotations
namespace LichessNET.Entities.Social.Timeline;
public class TimelineEntry
{
public string Type { get; set; }
[JsonConverter(typeof(TimelineEventDataConverter))]
public TimelineEventData Data { get; set; }
public long Date { get; set; }
public DateTime EventTime => DateTimeOffset.FromUnixTimeMilliseconds(Date).DateTime;
}