"Add MessagePack annotations to MCDF Share DTOs for serialization support"

This commit is contained in:
2025-11-02 12:25:12 +01:00
parent f75f16fb13
commit 7728ef2390
4 changed files with 41 additions and 33 deletions

View File

@@ -1,13 +1,15 @@
using System;
using System.Collections.Generic;
using MessagePack;
namespace MareSynchronos.API.Dto.McdfShare;
[MessagePackObject]
public class McdfShareUpdateRequestDto
{
public Guid ShareId { get; set; }
public string Description { get; set; } = string.Empty;
public DateTime? ExpiresAtUtc { get; set; }
public List<string> AllowedIndividuals { get; set; } = [];
public List<string> AllowedSyncshells { get; set; } = [];
[Key(0)] public Guid ShareId { get; set; }
[Key(1)] public string Description { get; set; } = string.Empty;
[Key(2)] public DateTime? ExpiresAtUtc { get; set; }
[Key(3)] public List<string> AllowedIndividuals { get; set; } = [];
[Key(4)] public List<string> AllowedSyncshells { get; set; } = [];
}