diff options
author | crupest <crupest@outlook.com> | 2021-02-10 02:03:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-10 02:03:06 +0800 |
commit | 4ea535d93753826ec900879560d876cec4d58c38 (patch) | |
tree | b2d94c4347fddf8641fc41caa86826374c9cc241 /BackEnd/Timeline/Models/Http/HttpTimelinePost.cs | |
parent | bf8f849c36bfc42cfd0ef1a66f2adf01dc8e1be7 (diff) | |
download | timeline-4ea535d93753826ec900879560d876cec4d58c38.tar.gz timeline-4ea535d93753826ec900879560d876cec4d58c38.tar.bz2 timeline-4ea535d93753826ec900879560d876cec4d58c38.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePost.cs')
-rw-r--r-- | BackEnd/Timeline/Models/Http/HttpTimelinePost.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs index 5981d7a4..165c92da 100644 --- a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs @@ -1,7 +1,9 @@ using System;
+using System.Collections.Generic;
namespace Timeline.Models.Http
{
+
/// <summary>
/// Info of a post.
/// </summary>
@@ -9,10 +11,10 @@ namespace Timeline.Models.Http {
public HttpTimelinePost() { }
- public HttpTimelinePost(long id, HttpTimelinePostContent? content, 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)
{
Id = id;
- Content = content;
+ DataList = dataList;
Deleted = deleted;
Time = time;
Author = author;
@@ -24,10 +26,7 @@ namespace Timeline.Models.Http /// Post id.
/// </summary>
public long Id { get; set; }
- /// <summary>
- /// Content of the post. May be null if post is deleted.
- /// </summary>
- public HttpTimelinePostContent? Content { get; set; }
+ public List<HttpTimelinePostDataDigest> DataList { get; set; } = default!;
/// <summary>
/// True if post is deleted.
/// </summary>
|