aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/BookmarkTimeline.cs
blob: 14be1112fede9eba123542f688e1269c70818021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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; }
    }
}