namespace zero.Media;
///
/// A media file (can contain an image or other media like videos and documents)
///
[RavenCollection("Media")]
public class Media : ZeroEntity, ISupportsTrees
{
public Media()
{
IsActive = true;
}
///
/// Id/name of the phyiscal folder which is stored on disk/cloud
///
public string FileId { get; set; }
///
/// Id of the parent folder
///
public string ParentId { get; set; }
///
/// Alternative text which is used when the image can't be loaded
///
public string AlternativeText { get; set; }
///
/// Additional caption text
///
public string Caption { get; set; }
///
/// Path of the media item
///
public string Path { get; set; }
///
/// Define custom thumbnails which are generated on upload
/// (see IZeroOptions.For().Thumbnails)
///
public Dictionary Thumbnails { get; set; } = new();
///
/// Filesize in bytes
///
public long Size { get; set; }
///
/// Meta data for images
///
public MediaImageMetadata ImageMeta { get; set; }
///
/// Optional focal point for an image
///
public MediaFocalPoint FocalPoint { get; set; }
///
/// Type of the media
///
public MediaType Type { get; set; }
}