aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/BookmarkTimeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-19 20:08:49 +0800
committercrupest <crupest@outlook.com>2020-12-19 20:08:49 +0800
commit6ac5ba10f9c417f63a4713612a0abf5b20deb099 (patch)
treec938e87c82d2df87ed6ec102dc5eacae6b7e6390 /BackEnd/Timeline/Models/Http/BookmarkTimeline.cs
parentb102ed3edf1330e77240708afb59ec8f91d67b41 (diff)
downloadtimeline-6ac5ba10f9c417f63a4713612a0abf5b20deb099.tar.gz
timeline-6ac5ba10f9c417f63a4713612a0abf5b20deb099.tar.bz2
timeline-6ac5ba10f9c417f63a4713612a0abf5b20deb099.zip
feat: Bookmark timeline REST api.
Diffstat (limited to 'BackEnd/Timeline/Models/Http/BookmarkTimeline.cs')
-rw-r--r--BackEnd/Timeline/Models/Http/BookmarkTimeline.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/BookmarkTimeline.cs b/BackEnd/Timeline/Models/Http/BookmarkTimeline.cs
new file mode 100644
index 00000000..14be1112
--- /dev/null
+++ b/BackEnd/Timeline/Models/Http/BookmarkTimeline.cs
@@ -0,0 +1,23 @@
+using System.ComponentModel.DataAnnotations;
+using Timeline.Models.Validation;
+
+namespace Timeline.Models.Http
+{
+ /// <summary>
+ /// Move bookmark timeline request body model.
+ /// </summary>
+ public class HttpBookmarkTimelineMoveRequest
+ {
+ /// <summary>
+ /// Timeline name.
+ /// </summary>
+ [GeneralTimelineName]
+ public string Timeline { get; set; } = default!;
+
+ /// <summary>
+ /// New position, starting at 1.
+ /// </summary>
+ [Required]
+ public long? NewPosition { get; set; }
+ }
+}