Kieran
4de977c1dd
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Kieran <kieran@harkin.me> Reviewed-on: #65
11 lines
363 B
C#
11 lines
363 B
C#
namespace VoidCat.Model;
|
|
|
|
public sealed record IngressPayload(Stream InStream, Database.File Meta, int Segment, int TotalSegments, bool ShouldStripMetadata)
|
|
{
|
|
public Guid Id { get; init; } = Guid.NewGuid();
|
|
public Guid? EditSecret { get; init; }
|
|
|
|
public bool IsAppend => Segment > 1 && IsMultipart;
|
|
|
|
public bool IsMultipart => TotalSegments > 1;
|
|
} |