mirror of
https://github.com/LANCommander/BlazorMarkdownEditor.git
synced 2026-08-01 02:10:35 -04:00
48 lines
No EOL
1.3 KiB
C#
48 lines
No EOL
1.3 KiB
C#
namespace PSC.Blazor.Components.MarkdownEditor.Models
|
|
{
|
|
/// <summary>
|
|
/// File Entry model
|
|
/// </summary>
|
|
public class FileEntry
|
|
{
|
|
/// <summary>
|
|
/// Gets the file-entry id.
|
|
/// </summary>
|
|
public int Id { get; }
|
|
|
|
/// <summary>
|
|
/// Returns the last modified time of the file.
|
|
/// </summary>
|
|
public DateTime LastModified { get; set; }
|
|
|
|
/// <summary>
|
|
/// Returns the name of the file.
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Returns the size of the file in bytes.
|
|
/// </summary>
|
|
public long Size { get; set; }
|
|
|
|
/// <summary>
|
|
/// Returns the MIME type of the file.
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
/// <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; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the content base64.
|
|
/// </summary>
|
|
public string ContentBase64 { get; set; }
|
|
}
|
|
} |