Replace implicit types with explicit types in UsersPage and ProfilePage

This commit is contained in:
Данил Ярош 2026-01-13 08:58:17 +03:00
parent e261cc77de
commit f1f3dcd4f4

View File

@ -258,7 +258,7 @@ public class ApiService : IDisposable
{
try
{
var loginData = new { email, password };
LoginRequest loginData = new LoginRequest { Email = email, Password = password };
// Используем относительный путь, так как BaseAddress уже установлен
string path = _config.TokenObtainPath.TrimStart('/');
@ -1211,3 +1211,17 @@ internal class TokenResponse
public string? Refresh { get; set; }
}
internal class LoginRequest
{
[JsonPropertyName("email")]
public string Email { get; set; } = string.Empty;
[JsonPropertyName("password")]
public string Password { get; set; } = string.Empty;
}
internal class RefreshRequest
{
[JsonPropertyName("refresh")]
public string Refresh { get; set; } = string.Empty;
}