mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-10-17 12:42:51 +02:00
19 lines
570 B
C#
19 lines
570 B
C#
using MemoryPack;
|
|
|
|
namespace Phantom.Common.Data.Backups;
|
|
|
|
[MemoryPackable]
|
|
public sealed partial record BackupCreationResult(
|
|
[property: MemoryPackOrder(0)] BackupCreationResultKind Kind,
|
|
[property: MemoryPackOrder(1)] BackupCreationWarnings Warnings = BackupCreationWarnings.None
|
|
) {
|
|
public sealed class Builder {
|
|
public BackupCreationResultKind Kind { get; set; } = BackupCreationResultKind.Success;
|
|
public BackupCreationWarnings Warnings { get; set; }
|
|
|
|
public BackupCreationResult Build() {
|
|
return new BackupCreationResult(Kind, Warnings);
|
|
}
|
|
}
|
|
}
|