using System; namespace Timeline.Models.Http { /// /// Info of a post. /// public class HttpTimelinePost { public HttpTimelinePost() { } public HttpTimelinePost(long id, HttpTimelinePostContent? content, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated) { Id = id; Content = content; Deleted = deleted; Time = time; Author = author; Color = color; LastUpdated = lastUpdated; } /// /// Post id. /// public long Id { get; set; } /// /// Content of the post. May be null if post is deleted. /// public HttpTimelinePostContent? Content { get; set; } /// /// 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!; } }