#region ========================================================================= USING ===================================================================================== using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary; using System; using System.Collections.Generic; using System.Diagnostics; #endregion namespace Lumina.Contracts.Responses.MediaLibrary.Management; /// /// Represents a media library response. /// /// The unique identifier of the media library. /// The unique identifier of the user owning the media library. /// The title of the media library. /// The type of the media library. /// The file system paths of the directories where the media library elements are located. /// The path of the image file used as the cover for the library. /// Whether the media library is enabled or not. A disabled media library is never shown or changed. /// Whether the media library is locked or not. A locked media library is displayed, but is never changed or updated. /// Whether the media library should update the metadata of its elements from the web, or not. /// Whether the media library should copy the downloaded metadata into the media library content locations, or not. /// Whether the media library should skip the directories whose contents have not changed since the last scan, during the scan. /// Whether the media library should skip hidden files and directories during the scan. /// Whether the content of the media library is stored on a solid state drive, in which case the file discovery and content hashing stages read the files in parallel. /// Whether the consumption progress of the media library items is tracked. /// The percentage of a media library item that must be consumed for its session to be considered completed, when progress tracking is enabled. /// The ordered parts of the template describing the structure of the media library on disk. /// The date and time when the library was created. /// The optional date and time when the library was updated. [DebuggerDisplay("Title: {Title}")] public record LibraryResponse( Guid Id, Guid UserId, string Title, LibraryType LibraryType, List ContentLocations, string? CoverImage, bool IsEnabled, bool IsLocked, bool CanDownloadMetadataFromWeb, bool ShouldSaveMetadataInMediaDirectories, bool ShouldSkipUnchangedDirectoriesDuringScan, bool ShouldSkipHiddenFilesAndDirectoriesDuringScan, bool IsContentOnSsd, bool ShouldTrackConsumptionProgress, int? CompletionThresholdPercentage, List PathTemplateParts, DateTime CreatedOnUtc, DateTime? UpdatedOnUtc );