Files
Nemera/src/Lumina.Contracts/Responses/MediaLibrary/Management/LibraryResponse.cs
T

52 lines
3.4 KiB
C#

#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;
/// <summary>
/// Represents a media library response.
/// </summary>
/// <param name="Id">The unique identifier of the media library.</param>
/// <param name="UserId">The unique identifier of the user owning the media library.</param>
/// <param name="Title">The title of the media library.</param>
/// <param name="LibraryType">The type of the media library.</param>
/// <param name="ContentLocations">The file system paths of the directories where the media library elements are located.</param>
/// <param name="CoverImage">The path of the image file used as the cover for the library.</param>
/// <param name="IsEnabled">Whether the media library is enabled or not. A disabled media library is never shown or changed.</param>
/// <param name="IsLocked">Whether the media library is locked or not. A locked media library is displayed, but is never changed or updated.</param>
/// <param name="CanDownloadMetadataFromWeb">Whether the media library should update the metadata of its elements from the web, or not.</param>
/// <param name="ShouldSaveMetadataInMediaDirectories">Whether the media library should copy the downloaded metadata into the media library content locations, or not.</param>
/// <param name="ShouldSkipUnchangedDirectoriesDuringScan">Whether the media library should skip the directories whose contents have not changed since the last scan, during the scan.</param>
/// <param name="ShouldSkipHiddenFilesAndDirectoriesDuringScan">Whether the media library should skip hidden files and directories during the scan.</param>
/// <param name="IsContentOnSsd">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.</param>
/// <param name="ShouldTrackConsumptionProgress">Whether the consumption progress of the media library items is tracked.</param>
/// <param name="CompletionThresholdPercentage">The percentage of a media library item that must be consumed for its session to be considered completed, when progress tracking is enabled.</param>
/// <param name="PathTemplateParts">The ordered parts of the template describing the structure of the media library on disk.</param>
/// <param name="CreatedOnUtc">The date and time when the library was created.</param>
/// <param name="UpdatedOnUtc">The optional date and time when the library was updated.</param>
[DebuggerDisplay("Title: {Title}")]
public record LibraryResponse(
Guid Id,
Guid UserId,
string Title,
LibraryType LibraryType,
List<string> ContentLocations,
string? CoverImage,
bool IsEnabled,
bool IsLocked,
bool CanDownloadMetadataFromWeb,
bool ShouldSaveMetadataInMediaDirectories,
bool ShouldSkipUnchangedDirectoriesDuringScan,
bool ShouldSkipHiddenFilesAndDirectoriesDuringScan,
bool IsContentOnSsd,
bool ShouldTrackConsumptionProgress,
int? CompletionThresholdPercentage,
List<LibraryPathTemplatePartResponse> PathTemplateParts,
DateTime CreatedOnUtc,
DateTime? UpdatedOnUtc
);