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
commitc6a4b88794cb87c25757542ad0642e9df56ddf0f (patch)
tree6cf4581e12f10f4d6b6d17ac95f1c6eb1f819eec /BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
parent1af0c82144a0f28f86922ecda04b159a553c699e (diff)
downloadtimeline-c6a4b88794cb87c25757542ad0642e9df56ddf0f.tar.gz
timeline-c6a4b88794cb87c25757542ad0642e9df56ddf0f.tar.bz2
timeline-c6a4b88794cb87c25757542ad0642e9df56ddf0f.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!;