-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathReportFile.cs
More file actions
30 lines (25 loc) · 806 Bytes
/
ReportFile.cs
File metadata and controls
30 lines (25 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using static System.Text.Json.Serialization.JsonNumberHandling;
namespace Bit.Core.Dirt.Models.Data;
public class ReportFile
{
/// <summary>
/// Uniquely identifies an uploaded file.
/// </summary>
[DisallowNull]
public string? Id { get; set; }
/// <summary>
/// Attached file name.
/// </summary>
public string FileName { get; set; } = string.Empty;
/// <summary>
/// Size of the attached file in bytes.
/// </summary>
[JsonNumberHandling(WriteAsString | AllowReadingFromString)]
public long Size { get; set; }
/// <summary>
/// When true the uploaded file's length has been validated.
/// </summary>
public bool Validated { get; set; } = false;
}