aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-04 21:26:01 +0800
committercrupest <crupest@outlook.com>2021-02-04 21:26:01 +0800
commita46460a3cc71497bc7d360ab3d7068059bc7a0cc (patch)
treed1d361e9e5204c06b4356db6d20e7b0adcc39021 /BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
parentad1e58e80ca5e3eb1e72b93affa82082a3ee861b (diff)
downloadtimeline-a46460a3cc71497bc7d360ab3d7068059bc7a0cc.tar.gz
timeline-a46460a3cc71497bc7d360ab3d7068059bc7a0cc.tar.bz2
timeline-a46460a3cc71497bc7d360ab3d7068059bc7a0cc.zip
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePost.cs')
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePost.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
index a563bea0..5981d7a4 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
@@ -9,13 +9,14 @@ namespace Timeline.Models.Http
{
public HttpTimelinePost() { }
- public HttpTimelinePost(long id, HttpTimelinePostContent? content, bool deleted, DateTime time, HttpUser? author, DateTime lastUpdated)
+ public HttpTimelinePost(long id, HttpTimelinePostContent? content, bool deleted, DateTime time, HttpUser? author, string? color, DateTime lastUpdated)
{
Id = id;
Content = content;
Deleted = deleted;
Time = time;
Author = author;
+ Color = color;
LastUpdated = lastUpdated;
}
@@ -40,6 +41,10 @@ namespace Timeline.Models.Http
/// </summary>
public HttpUser? Author { get; set; } = default!;
/// <summary>
+ /// The color.
+ /// </summary>
+ public string? Color { get; set; }
+ /// <summary>
/// Last updated time.
/// </summary>
public DateTime LastUpdated { get; set; } = default!;