2022-01-25 23:39:51 +00:00
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace VoidCat.Model
|
2022-01-25 16:17:48 +00:00
|
|
|
|
{
|
|
|
|
|
public class VoidFile
|
|
|
|
|
{
|
2022-01-25 23:39:51 +00:00
|
|
|
|
[JsonConverter(typeof(Base58GuidConverter))]
|
|
|
|
|
public Guid Id { get; init; }
|
2022-01-25 16:17:48 +00:00
|
|
|
|
|
2022-01-25 23:39:51 +00:00
|
|
|
|
public VoidFileMeta Metadata { get; set; }
|
|
|
|
|
|
2022-01-25 16:17:48 +00:00
|
|
|
|
public ulong Size { get; init; }
|
|
|
|
|
|
|
|
|
|
public DateTimeOffset Uploaded { get; init; }
|
|
|
|
|
}
|
2022-01-25 23:39:51 +00:00
|
|
|
|
|
|
|
|
|
public class InternalVoidFile : VoidFile
|
|
|
|
|
{
|
|
|
|
|
[JsonConverter(typeof(Base58GuidConverter))]
|
|
|
|
|
public Guid EditSecret { get; init; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class VoidFileMeta
|
|
|
|
|
{
|
|
|
|
|
public string? Name { get; init; }
|
|
|
|
|
|
|
|
|
|
public string? Description { get; init; }
|
|
|
|
|
|
|
|
|
|
public string? MimeType { get; init; }
|
|
|
|
|
}
|
2022-01-25 16:17:48 +00:00
|
|
|
|
}
|