mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 09:22:21 +00:00
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.
23 lines
982 B
C#
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>();
|
|
}
|
|
}
|