using zero.Core.Attributes;
namespace zero.Core.Entities
{
///
/// A media file (can contain an image or other media like videos and documents)
///
[Collection("Media")]
public class Media : ZeroEntity
{
///
/// Id/name of the phyiscal folder which is stored on disk/cloud
///
public string FileId { get; set; }
///
/// Id of the media folder
///
public string FolderId { 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 Source { get; set; }
///
/// For images this is the source for a 100x100px thumbnail
///
public string ThumbnailSource { get; set; }
///
/// For images this is the source for a [proportional]x210px thumbnail
///
public string PreviewSource { get; set; }
///
/// Filesize in bytes
///
public long Size { get; set; }
///
/// Meta data for images
///
public MediaImageMeta ImageMeta { get; set; }
///
/// Optional focal point for an image
///
public MediaFocalPoint FocalPoint { get; set; }
///
/// Type of the media
///
public MediaType Type { get; set; }
}
public enum MediaSourceSize
{
Original = 0,
Preview = 1,
Thumbnail = 2
}
}