namespace Timeline.Models.Http { /// /// Info of post content. /// public class HttpTimelinePostContent { public HttpTimelinePostContent() { } public HttpTimelinePostContent(string type, string? text, string? url, string? eTag) { Type = type; Text = text; Url = url; ETag = eTag; } /// /// Type of the post content. /// 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 the image url. /// public string? Url { get; set; } /// /// If post has data (currently it means it's a image post), this is the data etag. /// public string? ETag { get; set; } } }