Files
mixtape/zero.Core/Entities/Media/Media.cs
T
2020-03-24 23:09:29 +01:00

41 lines
950 B
C#

using System;
namespace zero.Core.Entities
{
/// <summary>
/// A media file (can contain an image or other media like videos and documents)
/// </summary>
public class Media : DatabaseEntity
{
/// <summary>
/// Alternative text which is used when the image can't be loaded
/// </summary>
public string AlternativeText { get; set; }
/// <summary>
/// Additional caption text
/// </summary>
public string Caption { get; set; }
/// <summary>
/// Path of the media item
/// </summary>
public string Source { get; set; }
/// <summary>
/// Filesize in bytes
/// </summary>
public int Size { get; set; }
/// <summary>
/// Time the file has last changed
/// </summary>
public DateTimeOffset LastModifiedDate { get; set; }
/// <summary>
/// Optional focal point for an image
/// </summary>
public MediaFocalPoint FocalPoint { get; set; }
}
}