using System; using Timeline.Models.Validation; namespace Timeline.Models.Http { /// /// The model of changing post content. /// public class HttpTimelinePostPatchRequestContent { /// /// The new type of the post. If null, old type is used. This field can't be used alone. Use it with corresponding fields to change post content. /// [TimelinePostContentType] public string? Type { get; set; } /// /// The new text. Null for not change. /// public string? Text { get; set; } /// /// The new data. Null for not change. /// public string? Data { get; set; } } public class HttpTimelinePostPatchRequest { /// /// Change the time. Null for not change. /// public DateTime? Time { get; set; } /// /// Change the color. Null for not change. /// [Color] public string? Color { get; set; } } }