diff --git a/LightlessSyncAPI/Dto/User/BanRequest.cs b/LightlessSyncAPI/Dto/User/BanRequest.cs new file mode 100644 index 0000000..fd727f6 --- /dev/null +++ b/LightlessSyncAPI/Dto/User/BanRequest.cs @@ -0,0 +1,5 @@ +using MessagePack; +namespace LightlessSync.API.Dto.User; + +[MessagePackObject(keyAsPropertyName: true)] +public record BanRequest(string UID); diff --git a/LightlessSyncAPI/Dto/User/UnbanRequest.cs b/LightlessSyncAPI/Dto/User/UnbanRequest.cs new file mode 100644 index 0000000..719ee2d --- /dev/null +++ b/LightlessSyncAPI/Dto/User/UnbanRequest.cs @@ -0,0 +1,9 @@ +using MessagePack; + +namespace LightlessSync.API.Dto.User; +[MessagePackObject(keyAsPropertyName: true)] +public record UnbanRequest(string? Uid, string? DiscordId) +{ + public bool IsValid => !string.IsNullOrEmpty(Uid) || !string.IsNullOrEmpty(DiscordId); +} +