mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-17 01:42:19 +00:00
missing file
This commit is contained in:
parent
490fed2a06
commit
85028860b1
51
Uaflix/Models/FilmInfo.cs
Normal file
51
Uaflix/Models/FilmInfo.cs
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Uaflix.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Модель для зберігання інформації про фільм
|
||||||
|
/// </summary>
|
||||||
|
public class FilmInfo
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// URL сторінки фільму
|
||||||
|
/// </summary>
|
||||||
|
public string Url { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Назва фільму
|
||||||
|
/// </summary>
|
||||||
|
public string Title { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Рік випуску
|
||||||
|
/// </summary>
|
||||||
|
public int Year { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Опис фільму
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Постер фільму
|
||||||
|
/// </summary>
|
||||||
|
public string PosterUrl { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Список акторів
|
||||||
|
/// </summary>
|
||||||
|
public List<string> Actors { get; set; } = new List<string>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Режисер
|
||||||
|
/// </summary>
|
||||||
|
public string Director { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Тривалість у секундах
|
||||||
|
/// </summary>
|
||||||
|
public int Duration { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
19
Uaflix/Models/PaginationInfo.cs
Normal file
19
Uaflix/Models/PaginationInfo.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Uaflix.Models
|
||||||
|
{
|
||||||
|
public class PaginationInfo
|
||||||
|
{
|
||||||
|
// Словник сезонів, де ключ - номер сезону, значення - кількість сторінок
|
||||||
|
public Dictionary<int, int> Seasons { get; set; } = new Dictionary<int, int>();
|
||||||
|
|
||||||
|
// Загальна кількість сторінок (якщо потрібно)
|
||||||
|
public int TotalPages { get; set; }
|
||||||
|
|
||||||
|
// URL сторінки серіалу (базовий URL для пагінації)
|
||||||
|
public string SerialUrl { get; set; }
|
||||||
|
|
||||||
|
public List<EpisodeLinkInfo> Episodes { get; set; } = new List<EpisodeLinkInfo>();
|
||||||
|
}
|
||||||
|
}
|
||||||
13
Uaflix/Models/SearchResult.cs
Normal file
13
Uaflix/Models/SearchResult.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Uaflix.Models
|
||||||
|
{
|
||||||
|
public class SearchResult
|
||||||
|
{
|
||||||
|
public string Title { get; set; }
|
||||||
|
public string Url { get; set; }
|
||||||
|
public int Year { get; set; }
|
||||||
|
public string PosterUrl { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user