From 21cf6a046b3e279c0694594f40e33daaa4d863f7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- .../Models/Http/HttpTimelinePostContent.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 BackEnd/Timeline/Models/Http/HttpTimelinePostContent.cs (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostContent.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostContent.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostContent.cs new file mode 100644 index 00000000..55ff1ac2 --- /dev/null +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostContent.cs @@ -0,0 +1,35 @@ +namespace Timeline.Models.Http +{ + /// + /// Info of post content. + /// + public class HttpTimelinePostContent + { + public HttpTimelinePostContent() { } + + public HttpTimelinePostContent(string type, string? text, string? url, string? eTag) + { + Type = type; + Text = text; + Url = url; + ETag = eTag; + } + + /// + /// 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; } + /// + /// If post has data (currently it means it's a image post), this is the data etag. + /// + public string? ETag { get; set; } + } +} -- cgit v1.2.3