From 21cf6a046b3e279c0694594f40e33daaa4d863f7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- .../Models/Http/HttpTimelinePostCreateRequest.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs new file mode 100644 index 00000000..cfbec029 --- /dev/null +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs @@ -0,0 +1,19 @@ +using System; +using System.ComponentModel.DataAnnotations; + +namespace Timeline.Models.Http +{ + public class HttpTimelinePostCreateRequest + { + /// + /// Content of the new post. + /// + [Required] + public HttpTimelinePostCreateRequestContent Content { get; set; } = default!; + + /// + /// Time of the post. If not set, current time will be used. + /// + public DateTime? Time { get; set; } + } +} -- cgit v1.2.3