20 lines
1.3 KiB
C#
20 lines
1.3 KiB
C#
namespace AuthApi.Models;
|
|
|
|
public class RegisterRequest { public string Username { get; set; } = ""; public string Password { get; set; } = ""; public string? Email { get; set; } public bool AcceptLegal { get; set; } }
|
|
public class LoginRequest { public string Username { get; set; } = ""; public string Password { get; set; } = ""; }
|
|
public class ChangeRoleRequest { public string Username { get; set; } = ""; public string NewRole { get; set; } = ""; }
|
|
public class RefreshRequest { public string Username { get; set; } = ""; public string RefreshToken { get; set; } = ""; }
|
|
public class UpdateProfileRequest { public string? DisplayName { get; set; } public string? Email { get; set; } }
|
|
public class ChangePasswordRequest { public string CurrentPassword { get; set; } = ""; public string NewPassword { get; set; } = ""; }
|
|
public class DeleteAccountRequest { public string Password { get; set; } = ""; public string Confirmation { get; set; } = ""; }
|
|
public class CompleteSteamRequest
|
|
{
|
|
public string TransactionId { get; set; } = "";
|
|
public string Action { get; set; } = "";
|
|
public string Username { get; set; } = "";
|
|
public string? Email { get; set; }
|
|
public string Password { get; set; } = "";
|
|
public bool AcceptLegal { get; set; }
|
|
}
|
|
public class AcceptLegalRequest { public bool Accept { get; set; } }
|