Files
mixtape/zero.Core/Media/Models/Media.cs
T

48 lines
1.0 KiB
C#
Raw Normal View History

2021-11-20 13:52:28 +01:00
namespace zero.Media;
/// <summary>
/// A media file (can contain an image or other media like videos and documents)
/// </summary>
[RavenCollection("Media")]
2021-12-29 01:25:35 +01:00
public class Media : ZeroEntity, ISupportsTrees, IAlwaysActive
2021-11-20 13:52:28 +01:00
{
public Media()
{
IsActive = true;
}
2021-12-16 16:59:27 +01:00
/// <summary>
/// Whether this media item is a folder or a file
/// </summary>
public bool IsFolder { get; set; }
2021-11-20 13:52:28 +01:00
/// <summary>
/// Id/name of the phyiscal folder which is stored on disk/cloud
/// </summary>
public string FileId { get; set; }
/// <summary>
2021-11-25 15:38:36 +01:00
/// Id of the parent folder
2021-11-20 13:52:28 +01:00
/// </summary>
2021-11-25 15:38:36 +01:00
public string ParentId { get; set; }
2021-11-20 13:52:28 +01:00
/// <summary>
/// Additional caption text
/// </summary>
public string Caption { get; set; }
/// <summary>
/// Path of the media item
/// </summary>
2021-11-25 15:38:36 +01:00
public string Path { get; set; }
2021-11-20 13:52:28 +01:00
/// <summary>
/// Filesize in bytes
/// </summary>
public long Size { get; set; }
/// <summary>
/// Meta data for images
/// </summary>
2021-11-25 15:38:36 +01:00
public MediaImageMetadata ImageMeta { get; set; }
2021-11-20 13:52:28 +01:00
}