From d45f776470a7cece565a46655f286fcb06cb3a87 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 13 Feb 2021 15:09:21 +0800 Subject: feat: Post info add editable field. --- BackEnd/Timeline/Models/Http/HttpTimelinePost.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'BackEnd/Timeline/Models/Http') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs index 26e1a92d..5e069821 100644 --- a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs @@ -11,7 +11,7 @@ namespace Timeline.Models.Http { public HttpTimelinePost() { } - public HttpTimelinePost(long id, List dataList, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated) + public HttpTimelinePost(long id, List dataList, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated, string timelineName, bool editable) { Id = id; DataList = dataList; @@ -20,6 +20,8 @@ namespace Timeline.Models.Http Author = author; Color = color; LastUpdated = lastUpdated; + TimelineName = timelineName; + Editable = editable; } /// @@ -52,5 +54,13 @@ namespace Timeline.Models.Http /// Last updated time. /// public DateTime LastUpdated { get; set; } = default!; + /// + /// Timeline name. + /// + public string TimelineName { get; set; } = default!; + /// + /// True if you can edit this post. + /// + public bool Editable { get; set; } } } -- cgit v1.2.3