Files
YouTube-Manager/Manager.Data/Models/LibraryContext/MediaEntity.cs
2025-08-16 16:46:56 +02:00

34 lines
823 B
C#

namespace Manager.Data.Models.LibraryContext;
public class MediaEntity : DateTimeBase
{
public required string Id { get; set; }
public string? Title { get; set; }
public string? Description { get; set; }
public DateTime UploadDateUtc { get; set; }
public required string ChannelId { get; set; }
public List<MediaFormatEntity> Formats { get; set; } = [];
public List<CaptionEntity> Captions { get; set; } = [];
public MediaState State { get; set; } = MediaState.Online;
public bool IsDownloaded { get; set; }
public MediaProcessState ProcessState { get; set; } = MediaProcessState.ToDownload;
}
public enum MediaState
{
Online,
Offline,
Limited,
Removed
}
public enum MediaProcessState
{
ToDownload,
Downloaded,
ToRemove,
Removed,
Failed
}