Replace anonymous types with explicit types in ApiService

This commit is contained in:
Данил Ярош 2026-01-13 09:00:01 +03:00
parent f1f3dcd4f4
commit 8fff39dfc6

View File

@ -2,6 +2,7 @@ using System.Diagnostics;
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Text.Json;
using System.Text.Json.Serialization;
using CORP_MAUI.Models;
namespace CORP_MAUI.Services;
@ -410,7 +411,7 @@ public class ApiService : IDisposable
// Используем относительный путь, так как BaseAddress уже установлен
string path = _config.TokenRefreshPath.TrimStart('/');
var refreshData = new { refresh = _refreshToken };
RefreshRequest refreshData = new RefreshRequest { Refresh = _refreshToken };
Trace.WriteLine($"║ Request Path: {path}");
Trace.WriteLine($"║ Full URL: {_httpClient.BaseAddress}{path}");