using System.ComponentModel.DataAnnotations;
namespace Timeline.Models.Http
{
///
/// Content of post create request.
///
public class HttpTimelinePostCreateRequestContent
{
///
/// Type of post content.
///
[Required]
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 base64 of image data.
///
public string? Data { get; set; }
}
}