From 0a0a61b60544a135a61394953bb5bb9dbbfeb241 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- .../Models/Http/HttpBookmarkTimelineMoveRequest.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 BackEnd/Timeline/Models/Http/HttpBookmarkTimelineMoveRequest.cs (limited to 'BackEnd/Timeline/Models/Http/HttpBookmarkTimelineMoveRequest.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpBookmarkTimelineMoveRequest.cs b/BackEnd/Timeline/Models/Http/HttpBookmarkTimelineMoveRequest.cs new file mode 100644 index 00000000..14be1112 --- /dev/null +++ b/BackEnd/Timeline/Models/Http/HttpBookmarkTimelineMoveRequest.cs @@ -0,0 +1,23 @@ +using System.ComponentModel.DataAnnotations; +using Timeline.Models.Validation; + +namespace Timeline.Models.Http +{ + /// + /// Move bookmark timeline request body model. + /// + public class HttpBookmarkTimelineMoveRequest + { + /// + /// Timeline name. + /// + [GeneralTimelineName] + public string Timeline { get; set; } = default!; + + /// + /// New position, starting at 1. + /// + [Required] + public long? NewPosition { get; set; } + } +} -- cgit v1.2.3