You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
1 year ago
|
using System.Text.Json.Serialization;
|
||
1 year ago
|
|
||
1 year ago
|
namespace StabilityMatrix.Core.Models.Api;
|
||
1 year ago
|
|
||
|
public class CivitFile
|
||
|
{
|
||
1 year ago
|
[JsonPropertyName("sizeKB")]
|
||
1 year ago
|
public double SizeKb { get; set; }
|
||
|
|
||
|
[JsonPropertyName("pickleScanResult")]
|
||
|
public string PickleScanResult { get; set; }
|
||
|
|
||
|
[JsonPropertyName("virusScanResult")]
|
||
|
public string VirusScanResult { get; set; }
|
||
|
|
||
|
[JsonPropertyName("scannedAt")]
|
||
|
public DateTime? ScannedAt { get; set; }
|
||
|
|
||
|
[JsonPropertyName("metadata")]
|
||
|
public CivitFileMetadata Metadata { get; set; }
|
||
1 year ago
|
|
||
|
[JsonPropertyName("name")]
|
||
|
public string Name { get; set; }
|
||
|
|
||
|
[JsonPropertyName("downloadUrl")]
|
||
|
public string DownloadUrl { get; set; }
|
||
1 year ago
|
|
||
|
[JsonPropertyName("hashes")]
|
||
|
public CivitFileHashes Hashes { get; set; }
|
||
1 year ago
|
|
||
|
private FileSizeType? fullFilesSize;
|
||
|
public FileSizeType FullFilesSize
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (fullFilesSize != null) return fullFilesSize;
|
||
|
fullFilesSize = new FileSizeType(SizeKb);
|
||
|
return fullFilesSize;
|
||
|
}
|
||
|
}
|
||
1 year ago
|
}
|