HttpResponseMessage response = await client.GetAsync(nextPageUrl);
string responseBody = await response.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode)
{
var animeListResponse = JsonSerializer.Deserialize<AnimeListResponse>(responseBody,
new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
if (animeListResponse.Data != null)
{
animeList.AddRange(animeListResponse.Data);
}
HttpResponseMessage response = await client.GetAsync(nextPageUrl);
string responseBody = await response.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode)
{
var animeListResponse = JsonSerializer.Deserialize<AnimeListResponse>(responseBody,
new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
if (animeListResponse.Data != null)
{
animeList.AddRange(animeListResponse.Data);
}