aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/HttpHighlightTimelineMoveRequest.cs
blob: 5af0e5284c8a9f778e5a5f4043de507bc02f0acc (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 highlight timeline request body model.
    /// </summary>
    public class HttpHighlightTimelineMoveRequest
    {
        /// <summary>
        /// Timeline name.
        /// </summary>
        [GeneralTimelineName]
        public string Timeline { get; set; } = default!;

        /// <summary>
        /// New position, starting at 1.
        /// </summary>
        [Required]
        public long? NewPosition { get; set; }
    }
}