mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 10:01:10 +00:00
Adds real time media libraries scan progress update via SignalR
This commit is contained in:
1 parent
d70b2dcaa0
commit
e0d61802df
71 files changed
+1292
-131
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Models.Libraries;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a media library scan job progress model.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("CompletedItems: {CompletedItems}; TotalItems: {TotalItems}")]
|
||||
public class LibraryScanJobProgressModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the number of completed items of the media library scan job.
|
||||
/// </summary>
|
||||
public int CompletedItems { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the total number of items of the media library scan job.
|
||||
/// </summary>
|
||||
public int TotalItems { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current operation being performed by the media library scan job.
|
||||
/// </summary>
|
||||
public string? CurrentOperation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ratio between the total number and the completed number of items, as a percentage.
|
||||
/// </summary>
|
||||
public decimal ProgressPercentage { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user