Compare commits
2 Commits
4918a2c4e3
...
unbanbydis
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ce70bee83 | ||
|
|
d73dea8706 |
5
LightlessSyncAPI/Dto/User/BanRequest.cs
Normal file
5
LightlessSyncAPI/Dto/User/BanRequest.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
using MessagePack;
|
||||
namespace LightlessSync.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record BanRequest(string Uid);
|
||||
9
LightlessSyncAPI/Dto/User/UnbanRequest.cs
Normal file
9
LightlessSyncAPI/Dto/User/UnbanRequest.cs
Normal file
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user