From 21cf6a046b3e279c0694594f40e33daaa4d863f7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- .../Timeline/Models/Http/HttpTimelineCreateRequest.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 BackEnd/Timeline/Models/Http/HttpTimelineCreateRequest.cs (limited to 'BackEnd/Timeline/Models/Http/HttpTimelineCreateRequest.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelineCreateRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelineCreateRequest.cs new file mode 100644 index 00000000..e9f57e46 --- /dev/null +++ b/BackEnd/Timeline/Models/Http/HttpTimelineCreateRequest.cs @@ -0,0 +1,18 @@ +using System.ComponentModel.DataAnnotations; +using Timeline.Models.Validation; + +namespace Timeline.Models.Http +{ + /// + /// Create timeline request model. + /// + public class HttpTimelineCreateRequest + { + /// + /// Name of the new timeline. Must be a valid name. + /// + [Required] + [TimelineName] + public string Name { get; set; } = default!; + } +} -- cgit v1.2.3