using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Timeline.Models.Validation; namespace Timeline.Models.Http { public class HttpTimelinePostCreateRequestData { /// /// Kind of the data. /// [Required] [TimelinePostDataKind] public string Kind { get; set; } = default!; /// /// The true data. If kind is text or markdown, this is a string. If kind is image, this is base64 of data. /// [Required] public string Data { get; set; } = default!; } public class HttpTimelinePostCreateRequest { /// /// Data list of the new content. /// [Required] [MinLength(1)] public List DataList { get; set; } = default!; /// /// Time of the post. If not set, current time will be used. /// public DateTime? Time { get; set; } /// /// Color of the post. /// [Color] public string? Color { get; set; } } }