using System.ComponentModel.DataAnnotations; using Timeline.Models.Validation; namespace Timeline.Models.Http { /// /// Content of post create request. /// public class HttpTimelinePostCreateRequestContent { /// /// Type of post content. /// [Required] [TimelinePostContentType] public string Type { get; set; } = default!; /// /// If post is of text type, this is the text. /// public string? Text { get; set; } /// /// If post is of image type, this is base64 of image data. /// public string? Data { get; set; } } }