diff options
author | crupest <crupest@outlook.com> | 2021-01-07 22:10:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-07 22:10:58 +0800 |
commit | 0bb2cc098506963ebf9ee06ec94b43c8d388543c (patch) | |
tree | daaa39d8d1d72b10caaa92cb65ba1635237ef2dc /BackEnd/Timeline/Models/Http | |
parent | 41810d365ae87d93a19d78e5cb7d0187af842228 (diff) | |
download | timeline-0bb2cc098506963ebf9ee06ec94b43c8d388543c.tar.gz timeline-0bb2cc098506963ebf9ee06ec94b43c8d388543c.tar.bz2 timeline-0bb2cc098506963ebf9ee06ec94b43c8d388543c.zip |
feat: Timeline info contains bookmark and highlight flag.
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r-- | BackEnd/Timeline/Models/Http/Timeline.cs | 8 |
1 files changed, 7 insertions, 1 deletions
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<HttpUser> members, DateTime createTime, DateTime lastModified, HttpTimelineLinks links)
+ public HttpTimeline(string uniqueId, string title, string name, DateTime nameLastModifed, string description, HttpUser owner, TimelineVisibility visibility, List<HttpUser> 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 /// </summary>
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
/// <summary>
/// Related links.
|