namespace zero.Media;
///
/// A media file (can contain an image or other media like videos and documents)
///
[RavenCollection("Media")]
public class Media : ZeroEntity, ISupportsTrees, IAlwaysActive
{
public Media()
{
IsActive = true;
}
///
/// Whether this media item is a folder or a file
///
public bool IsFolder { get; set; }
///
/// 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; }
///
/// Additional caption text
///
public string Caption { get; set; }
///
/// Path of the media item
///
public string Path { get; set; }
///
/// Filesize in bytes
///
public long Size { get; set; }
///
/// Meta data for images
///
public MediaImageMetadata ImageMeta { get; set; }
}