using System; using System.Collections.Generic; namespace Timeline.Models.Http { /// /// Info of a post. /// public class HttpTimelinePost { public HttpTimelinePost() { } public HttpTimelinePost(long id, List dataList, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated) { Id = id; DataList = dataList; Deleted = deleted; Time = time; Author = author; Color = color; LastUpdated = lastUpdated; } /// /// Post id. /// public long Id { get; set; } public List DataList { get; set; } = default!; /// /// True if post is deleted. /// public bool Deleted { get; set; } /// /// Post time. /// public DateTime Time { get; set; } /// /// The author. May be null if the user has been deleted. /// public HttpUser? Author { get; set; } = default!; /// /// The color. /// public string? Color { get; set; } /// /// Last updated time. /// public DateTime LastUpdated { get; set; } = default!; } }