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)] #pragma warning disable CA2227 public List DataList { get; set; } = default!; #pragma warning restore CA2227 /// /// 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; } } }