diff options
author | crupest <crupest@outlook.com> | 2020-07-10 16:10:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-10 16:10:17 +0800 |
commit | 29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170 (patch) | |
tree | 7825438445e25ccb5fa574b91332d081029b7ce3 /Timeline/Models/Timeline.cs | |
parent | bac1c733f276ad0f449b4c60e5662d0413cd2121 (diff) | |
download | timeline-29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170.tar.gz timeline-29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170.tar.bz2 timeline-29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170.zip |
Add unit tests.
Diffstat (limited to 'Timeline/Models/Timeline.cs')
-rw-r--r-- | Timeline/Models/Timeline.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs index b1772fa7..7afb1984 100644 --- a/Timeline/Models/Timeline.cs +++ b/Timeline/Models/Timeline.cs @@ -60,6 +60,7 @@ namespace Timeline.Models public long Id { get; set; }
public ITimelinePostContent? Content { get; set; }
+ public bool Deleted => Content == null;
public DateTime Time { get; set; }
public User Author { get; set; }
public DateTime LastUpdated { get; set; }
|