2022-01-11 22:02:56 +00:00
|
|
|
|
namespace PSC.Blazor.Components.MarkdownEditor.Models
|
2022-01-05 22:27:54 +00:00
|
|
|
|
{
|
2022-01-11 22:02:56 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// File Entry model
|
|
|
|
|
|
/// </summary>
|
2022-01-05 22:27:54 +00:00
|
|
|
|
public class FileEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the file-entry id.
|
|
|
|
|
|
/// </summary>
|
2022-01-11 22:02:56 +00:00
|
|
|
|
public int Id { get; }
|
2022-01-05 22:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the last modified time of the file.
|
|
|
|
|
|
/// </summary>
|
2022-01-11 22:02:56 +00:00
|
|
|
|
public DateTime LastModified { get; set; }
|
2022-01-05 22:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the name of the file.
|
|
|
|
|
|
/// </summary>
|
2022-01-11 22:02:56 +00:00
|
|
|
|
public string Name { get; set; }
|
2022-01-05 22:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the size of the file in bytes.
|
|
|
|
|
|
/// </summary>
|
2022-01-11 22:02:56 +00:00
|
|
|
|
public long Size { get; set; }
|
2022-01-05 22:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the MIME type of the file.
|
|
|
|
|
|
/// </summary>
|
2022-01-11 22:02:56 +00:00
|
|
|
|
public string Type { get; set; }
|
2022-01-05 22:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Provides a way to tell the location of the uploaded file or image.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string UploadUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Provides a way to tell if any error happened.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ErrorMessage { get; set; }
|
2022-01-08 09:52:41 +00:00
|
|
|
|
|
2022-01-11 22:02:56 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the content base64.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ContentBase64 { get; set; }
|
2022-01-05 22:27:54 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|