aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-13 15:09:21 +0800
committercrupest <crupest@outlook.com>2021-02-13 15:09:21 +0800
commit01c3c5800f9b8a7b89d98b28ea748d496497c0b2 (patch)
treeb41f4a4eb95e0f1608be951d874f6911460e71e4 /BackEnd/Timeline/Models/Http
parentc3d0a5f88de0fbdf6bc584548832017087ab1248 (diff)
downloadtimeline-01c3c5800f9b8a7b89d98b28ea748d496497c0b2.tar.gz
timeline-01c3c5800f9b8a7b89d98b28ea748d496497c0b2.tar.bz2
timeline-01c3c5800f9b8a7b89d98b28ea748d496497c0b2.zip
feat: Post info add editable field.
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePost.cs12
1 files changed, 11 insertions, 1 deletions
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<HttpTimelinePostDataDigest> dataList, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated)
+ public HttpTimelinePost(long id, List<HttpTimelinePostDataDigest> 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;
}
/// <summary>
@@ -52,5 +54,13 @@ namespace Timeline.Models.Http
/// Last updated time.
/// </summary>
public DateTime LastUpdated { get; set; } = default!;
+ /// <summary>
+ /// Timeline name.
+ /// </summary>
+ public string TimelineName { get; set; } = default!;
+ /// <summary>
+ /// True if you can edit this post.
+ /// </summary>
+ public bool Editable { get; set; }
}
}