blob: b25adf3678864cca40c29fba5ace96ed2c2bb24b (
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
|
using System;
using System.ComponentModel.DataAnnotations;
using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
public class HttpTimelinePostCreateRequest
{
/// <summary>
/// Content of the new post.
/// </summary>
[Required]
public HttpTimelinePostCreateRequestContent Content { get; set; } = default!;
/// <summary>
/// Time of the post. If not set, current time will be used.
/// </summary>
public DateTime? Time { get; set; }
/// <summary>
/// Color of the post.
/// </summary>
[Color]
public string? Color { get; set; }
}
}
|