#region ========================================================================= USING ===================================================================================== using Lumina.Domain.Common.Enums.MediaLibrary; using System; using System.Diagnostics; using System.Runtime.InteropServices; #endregion namespace Lumina.Contracts.Requests.MediaLibrary.Management; /// /// Represents a request to update a media library. /// /// The unique identifier of the media library. Required. /// The unique identifier of the user owning the media library. Required. /// The title of the media library. Required. /// The type of the media library. Required. /// The file system paths of the directories where the media library elements are located. Required. /// The path of the image file used as the cover for the library. Optional. /// Whether this media library is enabled or not. A disabled media library is never shown or changed. Optional. /// Whether this media library is locked or not. A locked media library is displayed, but is never changed or updated. Optional. /// Whether this media library should update the metadata of its elements from the web, or not. Optional. /// Whether this media library should copy the downloaded metadata into the media library content locations, or not. /// Whether this media library should skip the directories whose contents have not changed since the last scan, during the scan, or not. Optional. [DebuggerDisplay("Title: {Title}")] public record class UpdateLibraryRequest( Guid Id, Guid UserId, string? Title, string? LibraryType, string[]? ContentLocations, string? CoverImage, bool IsEnabled, bool IsLocked, bool DownloadMetadataFromWeb, bool ShouldSaveMetadataInMediaDirectories, bool ShouldSkipUnchangedDirectoriesDuringScan );