aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/Timeline.cs
blob: 37de9e586612dd725da47eed2a273da3535d133c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

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

        public DateTime? Time { get; set; }
    }

    [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO class.")]
    public class TimelineMemberChangeRequest
    {
        public List<string>? Add { get; set; }

        public List<string>? Remove { get; set; }
    }
}