From 04186d5f1091266b85758d4b4255c6a7c1b498f6 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 7 Jan 2021 22:10:58 +0800 Subject: feat: Timeline info contains bookmark and highlight flag. --- BackEnd/Timeline/Models/Http/Timeline.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'BackEnd/Timeline/Models/Http') diff --git a/BackEnd/Timeline/Models/Http/Timeline.cs b/BackEnd/Timeline/Models/Http/Timeline.cs index 06fa4e5a..5e5889f6 100644 --- a/BackEnd/Timeline/Models/Http/Timeline.cs +++ b/BackEnd/Timeline/Models/Http/Timeline.cs @@ -86,7 +86,7 @@ namespace Timeline.Models.Http { public HttpTimeline() { } - public HttpTimeline(string uniqueId, string title, string name, DateTime nameLastModifed, string description, HttpUser owner, TimelineVisibility visibility, List members, DateTime createTime, DateTime lastModified, HttpTimelineLinks links) + public HttpTimeline(string uniqueId, string title, string name, DateTime nameLastModifed, string description, HttpUser owner, TimelineVisibility visibility, List members, DateTime createTime, DateTime lastModified, bool isHighlight, bool isBookmark, HttpTimelineLinks links) { UniqueId = uniqueId; Title = title; @@ -98,6 +98,8 @@ namespace Timeline.Models.Http Members = members; CreateTime = createTime; LastModified = lastModified; + IsHighlight = isHighlight; + IsBookmark = isBookmark; _links = links; } @@ -144,6 +146,10 @@ namespace Timeline.Models.Http /// public DateTime LastModified { get; set; } = default!; + public bool IsHighlight { get; set; } + + public bool IsBookmark { get; set; } + #pragma warning disable CA1707 // Identifiers should not contain underscores /// /// Related links. -- cgit v1.2.3