using System; using System.Collections.Generic; namespace Timeline.Models.Http { /// /// Info of a timeline. /// public class HttpTimeline { public HttpTimeline() { } public HttpTimeline(string uniqueId, string title, string name, DateTime nameLastModifed, string description, HttpUser owner, TimelineVisibility visibility, List members, string? color, DateTime createTime, DateTime lastModified, bool isHighlight, bool isBookmark, bool manageable, HttpTimelineLinks links) { UniqueId = uniqueId; Title = title; Name = name; NameLastModifed = nameLastModifed; Description = description; Owner = owner; Visibility = visibility; Members = members; Color = color; CreateTime = createTime; LastModified = lastModified; IsHighlight = isHighlight; IsBookmark = isBookmark; Manageable = manageable; _links = links; } /// /// Unique id. /// public string UniqueId { get; set; } = default!; /// /// Title. /// public string Title { get; set; } = default!; /// /// Name of timeline. /// public string Name { get; set; } = default!; /// /// Last modified time of timeline name. /// public DateTime NameLastModifed { get; set; } = default!; /// /// Timeline description. /// public string Description { get; set; } = default!; /// /// Owner of the timeline. /// public HttpUser Owner { get; set; } = default!; /// /// Visibility of the timeline. /// public TimelineVisibility Visibility { get; set; } #pragma warning disable CA2227 // Collection properties should be read only /// /// Members of timeline. /// public List Members { get; set; } = default!; #pragma warning restore CA2227 // Collection properties should be read only /// /// Color of timeline. /// public string? Color { get; set; } /// /// Create time of timeline. /// public DateTime CreateTime { get; set; } = default!; /// /// Last modified time of timeline. /// public DateTime LastModified { get; set; } = default!; public bool IsHighlight { get; set; } public bool IsBookmark { get; set; } public bool Manageable { get; set; } #pragma warning disable CA1707 // Identifiers should not contain underscores /// /// Related links. /// public HttpTimelineLinks _links { get; set; } = default!; #pragma warning restore CA1707 // Identifiers should not contain underscores } }