diff --git a/Uaflix/Models/FilmInfo.cs b/Uaflix/Models/FilmInfo.cs new file mode 100644 index 0000000..2b8d937 --- /dev/null +++ b/Uaflix/Models/FilmInfo.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; + +namespace Uaflix.Models +{ + /// + /// Модель для зберігання інформації про фільм + /// + public class FilmInfo + { + /// + /// URL сторінки фільму + /// + public string Url { get; set; } + + /// + /// Назва фільму + /// + public string Title { get; set; } + + /// + /// Рік випуску + /// + public int Year { get; set; } + + /// + /// Опис фільму + /// + public string Description { get; set; } + + /// + /// Постер фільму + /// + public string PosterUrl { get; set; } + + /// + /// Список акторів + /// + public List Actors { get; set; } = new List(); + + /// + /// Режисер + /// + public string Director { get; set; } + + /// + /// Тривалість у секундах + /// + public int Duration { get; set; } + } +} \ No newline at end of file diff --git a/Uaflix/Models/PaginationInfo.cs b/Uaflix/Models/PaginationInfo.cs new file mode 100644 index 0000000..495afe9 --- /dev/null +++ b/Uaflix/Models/PaginationInfo.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Uaflix.Models +{ + public class PaginationInfo + { + // Словник сезонів, де ключ - номер сезону, значення - кількість сторінок + public Dictionary Seasons { get; set; } = new Dictionary(); + + // Загальна кількість сторінок (якщо потрібно) + public int TotalPages { get; set; } + + // URL сторінки серіалу (базовий URL для пагінації) + public string SerialUrl { get; set; } + + public List Episodes { get; set; } = new List(); + } +} \ No newline at end of file diff --git a/Uaflix/Models/SearchResult.cs b/Uaflix/Models/SearchResult.cs new file mode 100644 index 0000000..832a22f --- /dev/null +++ b/Uaflix/Models/SearchResult.cs @@ -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; } + } +} \ No newline at end of file