From d42d826ae863b20913321d229a168b05d723db73 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 6 Feb 2021 16:41:19 +0800 Subject: ... --- .../Models/Http/HttpTimelinePostPatchRequest.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs new file mode 100644 index 00000000..3dface29 --- /dev/null +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs @@ -0,0 +1,39 @@ +using System; +using Timeline.Models.Validation; + +namespace Timeline.Models.Http +{ + /// + /// The model of changing post content. + /// + public class HttpTimelinePostPatchRequestContent + { + /// + /// The new type of the post. If null, old type is used. This field can't be used alone. Use it with corresponding fields to change post content. + /// + [TimelinePostContentType] + public string? Type { get; set; } + /// + /// The new text. Null for not change. + /// + public string? Text { get; set; } + /// + /// The new data. Null for not change. + /// + public string? Data { get; set; } + } + + public class HttpTimelinePostPatchRequest + { + /// + /// Change the time. Null for not change. + /// + public DateTime? Time { get; set; } + + /// + /// Change the color. Null for not change. + /// + [Color] + public string? Color { get; set; } + } +} -- cgit v1.2.3