mirror of
https://github.com/LANCommander/BlazorMarkdownEditor.git
synced 2026-08-30 08:23:04 -04:00
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
namespace PSC.Blazor.Components.MarkdownEditor.EventsArgs
|
|
{
|
|
/// <summary>
|
|
/// Provides the information about the file ended uploading.
|
|
/// </summary>
|
|
public class FileEndedEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// A default <see cref="FileEndedEventArgs"/> constructor.
|
|
/// </summary>
|
|
/// <param name="file">File that is ended.</param>
|
|
/// <param name="success">Result of file end upload.</param>
|
|
/// <param name="fileInvalidReason">Reason for file failure.</param>
|
|
public FileEndedEventArgs(FileEntry file, bool success, string fileInvalidReason)
|
|
{
|
|
File = file;
|
|
Success = success;
|
|
FileInvalidReason = fileInvalidReason;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the file currently being uploaded.
|
|
/// </summary>
|
|
public FileEntry File { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the value indicating if file has finished successfully.
|
|
/// </summary>
|
|
public bool Success { get; }
|
|
|
|
/// <summary>
|
|
/// Provides information about the invalid file.
|
|
/// </summary>
|
|
public string FileInvalidReason { get; set; }
|
|
}
|
|
}
|