aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/TimelineController.cs
blob: f9a4d3e54de5a4c6a4286e88d08a209d579e7a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.ComponentModel.DataAnnotations;

namespace Timeline.Models.Http
{
    public class TimelinePostCreateRequest
    {
        [Required(AllowEmptyStrings = true)]
        public string Content { get; set; } = default!;

        public DateTime? Time { get; set; }
    }

    public class TimelinePatchRequest
    {
        public string? Description { get; set; }

        public TimelineVisibility? Visibility { get; set; }
    }
}