void.cat/VoidCat/Model/IngressPayload.cs

11 lines
363 B
C#
Raw Permalink Normal View History

2022-02-21 22:35:06 +00:00
namespace VoidCat.Model;
public sealed record IngressPayload(Stream InStream, Database.File Meta, int Segment, int TotalSegments, bool ShouldStripMetadata)
2022-02-21 22:35:06 +00:00
{
2022-03-01 11:32:41 +00:00
public Guid Id { get; init; } = Guid.NewGuid();
2022-02-21 22:35:06 +00:00
public Guid? EditSecret { get; init; }
2022-07-26 12:32:36 +00:00
public bool IsAppend => Segment > 1 && IsMultipart;
public bool IsMultipart => TotalSegments > 1;
2022-02-21 22:35:06 +00:00
}