blob: 6d461bb982f7c8a3984f761e104d86b09616adc6 (
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
25
26
27
28
|
using System;
using System.ComponentModel.DataAnnotations;
using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
public class TimelinePostCreateRequest
{
[Required(AllowEmptyStrings = true)]
public string Content { get; set; } = default!;
public DateTime? Time { get; set; }
}
public class TimelineCreateRequest
{
[Required]
[TimelineName]
public string Name { get; set; } = default!;
}
public class TimelinePatchRequest
{
public string? Description { get; set; }
public TimelineVisibility? Visibility { get; set; }
}
}
|