aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Timeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-10 19:37:58 +0800
committercrupest <crupest@outlook.com>2020-03-10 19:37:58 +0800
commit95be9f58b7cf76f1c585791447e8393d61862e1c (patch)
treeb9165a233b00c4ab5be47f0ce786b64c178a9fdf /Timeline/Models/Timeline.cs
parent88232f85e69a5e4b390e73344b31372746d4adca (diff)
downloadtimeline-95be9f58b7cf76f1c585791447e8393d61862e1c.tar.gz
timeline-95be9f58b7cf76f1c585791447e8393d61862e1c.tar.bz2
timeline-95be9f58b7cf76f1c585791447e8393d61862e1c.zip
...
Diffstat (limited to 'Timeline/Models/Timeline.cs')
-rw-r--r--Timeline/Models/Timeline.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs
index 6d4c924d..803a5c5c 100644
--- a/Timeline/Models/Timeline.cs
+++ b/Timeline/Models/Timeline.cs
@@ -48,11 +48,22 @@ namespace Timeline.Models
public class TimelinePost
{
+ public TimelinePost(long id, ITimelinePostContent content, DateTime time, User author, DateTime lastUpdated, string timelineName)
+ {
+ Id = id;
+ Content = content;
+ Time = time;
+ Author = author;
+ LastUpdated = lastUpdated;
+ TimelineName = timelineName;
+ }
+
public long Id { get; set; }
- public ITimelinePostContent Content { get; set; } = default!;
+ public ITimelinePostContent Content { get; set; }
public DateTime Time { get; set; }
- public User Author { get; set; } = default!;
- public DateTime LastUpdated { get; set; } = default!;
+ public User Author { get; set; }
+ public DateTime LastUpdated { get; set; }
+ public string TimelineName { get; set; }
}
#pragma warning disable CA1724 // Type names should not match namespaces