Adds real time media libraries scan progress update via SignalR

This commit is contained in:
BinaryAlley committed 2025-02-22 17:45:09 +02:00
1 parent d70b2dcaa0
commit e0d61802df
71 files changed
+1292 -131

No files matched your search

@@ -1,5 +1,4 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
@@ -9,6 +8,9 @@ namespace Lumina.Contracts.Responses.MediaLibrary.Management;
/// <summary>
/// Represents a media library scan progress response.
/// </summary>
/// <param name="ScanId">The object representing the unique identifier of the media library scan.</param>
/// <param name="UserId">The object representing the unique identifier of the user initiating this media library scan.</param>
/// <param name="LibraryId">The object representing the unique identifier of the media library that is scanned.</param>
/// <param name="TotalJobs">The total number of jobs to be processed by the scan.</param>
/// <param name="CompletedJobs">The number of jobs that have been processed.</param>
/// <param name="CurrentJobProgress">The progress of the currently processing job.</param>
@@ -16,9 +18,12 @@ namespace Lumina.Contracts.Responses.MediaLibrary.Management;
/// <param name="OverallProgressPercentage">The ratio between the number of processed jobs and the total number of jobs to process, as percentage.</param>
[DebuggerDisplay("TotalJobs: {TotalJobs} CompletedJobs: {CompletedJobs}")]
public record MediaLibraryScanProgressResponse(
int TotalJobs,
int CompletedJobs,
MediaLibraryScanJobProgressResponse? CurrentJobProgress,
LibraryScanJobStatus Status,
decimal OverallProgressPercentage
Guid ScanId,
Guid UserId,
Guid LibraryId,
int TotalJobs,
int CompletedJobs,
MediaLibraryScanJobProgressResponse? CurrentJobProgress,
string Status,
decimal OverallProgressPercentage
);