#region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.Enums.Library; using System; using System.Collections.Generic; using System.Diagnostics; #endregion namespace Lumina.Presentation.Web.Common.Models.Libraries; /// /// Represents a library element. /// [DebuggerDisplay("{Title}")] public class LibraryModel { /// /// Gets or sets the unique identifier of the media library. /// public Guid? Id { get; set; } /// /// Gets or sets the unique identifier of the user owning the media library. /// public Guid? UserId { get; set; } /// /// Gets or sets the title of the library. /// public string? Title { get; set; } /// /// Gets or sets the type of the library. /// public string? LibraryType { get; set; } /// /// Gets or sets the path of the image file used as the cover for the library. /// public string? CoverImage { get; set; } /// /// Gets or sets the collection of directories that contain the library files. /// public List ContentLocations { get; set; } = []; /// /// Gets or sets whether this media library is enabled or not. A disabled media library is never shown or changed. /// public bool IsEnabled { get; set; } = true; /// /// Gets or sets whether this media library is locked or not. A locked media library is displayed, but is never changed or updated. /// public bool IsLocked { get; set; } = false; /// /// Gets or sets whether this media library should update the metadata of its elements from the web, or not. /// public bool DownloadMetadataFromWeb { get; set; } = true; /// /// Gets or sets whether this media library should copy the downloaded metadata into the media library content locations, or not. /// public bool ShouldSaveMetadataInMediaDirectories { get; set; } = false; /// /// Gets or sets whether this media library should skip the directories whose contents have not changed since the last scan, during the scan. This is an opt-in setting, because it relies on directory metadata, /// which does not change when the contents of an existing file are edited, and such edits could be missed while this setting is enabled. /// public bool ShouldSkipUnchangedDirectoriesDuringScan { get; set; } = false; }