blob: 12ab407f57b318e04471f795c2a8c673be2b9d25 (
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.ComponentModel.DataAnnotations;
using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
/// <summary>
/// Content of post create request.
/// </summary>
public class HttpTimelinePostCreateRequestContent
{
/// <summary>
/// Type of post content.
/// </summary>
[Required]
[TimelinePostContentType]
public string Type { get; set; } = default!;
/// <summary>
/// If post is of text type, this is the text.
/// </summary>
public string? Text { get; set; }
/// <summary>
/// If post is of image type, this is base64 of image data.
/// </summary>
public string? Data { get; set; }
}
}
|