lampac-ukraine/Uaflix/Models/PaginationInfo.cs
Felix 0aed459fab perf(uaflix): implement lazy season parsing for serials
Refactor season selection logic to use lazy loading instead of full aggregation, improving performance when choosing seasons. Added GetSeasonIndex and GetSeasonEpisodes methods, and SeasonUrls property to PaginationInfo for efficient season URL management.
2026-04-04 08:48:37 +03:00

23 lines
982 B
C#

using System;
using System.Collections.Generic;
namespace Uaflix.Models
{
public class PaginationInfo
{
// Словник сезонів, де ключ - номер сезону, значення - кількість сторінок
public Dictionary<int, int> Seasons { get; set; } = new Dictionary<int, int>();
// URL сторінки сезону: ключ - номер сезону, значення - абсолютний URL сторінки
public Dictionary<int, string> SeasonUrls { get; set; } = new Dictionary<int, string>();
// Загальна кількість сторінок (якщо потрібно)
public int TotalPages { get; set; }
// URL сторінки серіалу (базовий URL для пагінації)
public string SerialUrl { get; set; }
public List<EpisodeLinkInfo> Episodes { get; set; } = new List<EpisodeLinkInfo>();
}
}