10 lines
569 B
C#
10 lines
569 B
C#
namespace Server.Networking.Messages;
|
|
|
|
public sealed record AuthRegisterRequest(string Username, string Password, string? Email);
|
|
public sealed record AuthRegisterResponse(bool Ok, string? Error, string? Message);
|
|
|
|
public sealed record AuthLoginRequest(string UsernameOrEmail, string Password);
|
|
public sealed record AuthLoginResponse(bool Ok, string? Error, string? Token, ulong AccountId, System.DateTime? BannedUntilUtc);
|
|
|
|
public sealed record AuthWithTokenRequest(string Token);
|
|
public sealed record AuthWithTokenResponse(bool Ok, string? Error, ulong AccountId); |