using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Timeline.Models.Validation; namespace Timeline.Models.Http { public class HttpTimelinePostCreateRequest { /// /// Data list of the new content. /// [Required] [MinLength(1)] [MaxLength(100)] 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; } } }