From 0a0a61b60544a135a61394953bb5bb9dbbfeb241 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- .../Http/HttpTimelinePostCreateRequestContent.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs new file mode 100644 index 00000000..f4b300a9 --- /dev/null +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs @@ -0,0 +1,24 @@ +using System.ComponentModel.DataAnnotations; + +namespace Timeline.Models.Http +{ + /// + /// Content of post create request. + /// + public class HttpTimelinePostCreateRequestContent + { + /// + /// Type of post content. + /// + [Required] + 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 base64 of image data. + /// + public string? Data { get; set; } + } +} -- cgit v1.2.3