From 79ab2b304d93b1029515bd3f954db4e5a73f4168 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 30 Jan 2020 20:26:52 +0800 Subject: ... --- Timeline/Models/Timeline.cs | 55 --------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 Timeline/Models/Timeline.cs (limited to 'Timeline/Models/Timeline.cs') diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs deleted file mode 100644 index 752c698d..00000000 --- a/Timeline/Models/Timeline.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Timeline.Models -{ - public enum TimelineVisibility - { - /// - /// All people including those without accounts. - /// - Public, - /// - /// Only people signed in. - /// - Register, - /// - /// Only member. - /// - Private - } - - public class TimelinePostInfo - { - public long Id { get; set; } - - public string? Content { get; set; } - - public DateTime Time { get; set; } - - /// - /// The username of the author. - /// - public string Author { get; set; } = default!; - } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO class.")] - public class BaseTimelineInfo - { - public string? Description { get; set; } - - /// - /// The username of the owner. - /// - public string Owner { get; set; } = default!; - - public TimelineVisibility Visibility { get; set; } - - public List Members { get; set; } = default!; - } - - public class TimelineInfo : BaseTimelineInfo - { - public string Name { get; set; } = default!; - } -} -- cgit v1.2.3