From f1c70edd559c72dcb47ff647f3f03ba5ae9a56cc Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 21 Aug 2020 23:44:53 +0800 Subject: ... --- Timeline/Models/Http/Timeline.cs | 75 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) (limited to 'Timeline/Models/Http/Timeline.cs') diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs index 52e26190..6498fa74 100644 --- a/Timeline/Models/Http/Timeline.cs +++ b/Timeline/Models/Http/Timeline.cs @@ -8,45 +8,120 @@ using Timeline.Controllers; namespace Timeline.Models.Http { + /// + /// Info of post content. + /// public class TimelinePostContentInfo { + /// + /// Type of the post content. + /// public string Type { get; set; } = default!; + /// + /// If post is of text type. This is the text. + /// public string? Text { get; set; } + /// + /// If post is of image type. This is the image url. + /// public string? Url { get; set; } } + /// + /// Info of a post. + /// public class TimelinePostInfo { + /// + /// Post id. + /// public long Id { get; set; } + /// + /// Content of the post. May be null if post is deleted. + /// public TimelinePostContentInfo? Content { get; set; } + /// + /// True if post is deleted. + /// public bool Deleted { get; set; } + /// + /// Post time. + /// public DateTime Time { get; set; } + /// + /// The author. May be null if the user has been deleted. + /// public UserInfo? Author { get; set; } = default!; + /// + /// Last updated time. + /// public DateTime LastUpdated { get; set; } = default!; } + /// + /// Info of a timeline. + /// public class TimelineInfo { + /// + /// Unique id. + /// public string UniqueId { get; set; } = default!; + /// + /// Name of timeline. + /// public string Name { get; set; } = default!; + /// + /// Last modified time of timeline name. + /// public DateTime NameLastModifed { get; set; } = default!; + /// + /// Timeline description. + /// public string Description { get; set; } = default!; + /// + /// Owner of the timeline. + /// public UserInfo Owner { get; set; } = default!; + /// + /// Visibility of the timeline. + /// public TimelineVisibility Visibility { get; set; } #pragma warning disable CA2227 // Collection properties should be read only + /// + /// Members of timeline. + /// public List Members { get; set; } = default!; #pragma warning restore CA2227 // Collection properties should be read only + /// + /// Create time of timeline. + /// public DateTime CreateTime { get; set; } = default!; + /// + /// Last modified time of timeline. + /// public DateTime LastModified { get; set; } = default!; #pragma warning disable CA1707 // Identifiers should not contain underscores + /// + /// Related links. + /// public TimelineInfoLinks _links { get; set; } = default!; #pragma warning restore CA1707 // Identifiers should not contain underscores } + /// + /// Related links for timeline. + /// public class TimelineInfoLinks { + /// + /// Self. + /// public string Self { get; set; } = default!; + /// + /// Posts url. + /// public string Posts { get; set; } = default!; } -- cgit v1.2.3