blob: f4b300a9fe82330cc5ed99048d96e439ba309702 (
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.ComponentModel.DataAnnotations;
namespace Timeline.Models.Http
{
/// <summary>
/// Content of post create request.
/// </summary>
public class HttpTimelinePostCreateRequestContent
{
/// <summary>
/// Type of post content.
/// </summary>
[Required]
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; }
}
}
|