lampac-ukraine/Makhno/Models/MakhnoModels.cs
baliasnyifeliks 5f40e1781f feat(makhno): add Makhno online streaming module
Integrate Makhno video streaming service with support for movies and
serials. The module provides search functionality, player data retrieval,
and streaming capabilities through multiple external APIs including
Wormhole, Ashdi, and UaTUT. Features include:

- HTTP controller for handling playback requests
- Support for multiple voice translations and seasons
- Proxy management and caching
- TMDB integration for metadata enrichment
- Online API integration for event handling
2026-02-03 19:30:42 +02:00

62 lines
1.4 KiB
C#

using Newtonsoft.Json;
using System.Collections.Generic;
namespace Makhno.Models
{
public class SearchResult
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("imdb_id")]
public string ImdbId { get; set; }
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("title_alt")]
public string TitleAlt { get; set; }
[JsonProperty("title_en")]
public string TitleEn { get; set; }
[JsonProperty("title_ru")]
public string TitleRu { get; set; }
[JsonProperty("year")]
public string Year { get; set; }
[JsonProperty("category")]
public string Category { get; set; }
}
public class PlayerData
{
public string File { get; set; }
public string Poster { get; set; }
public List<Voice> Voices { get; set; }
public List<Season> Seasons { get; set; }
}
public class Voice
{
public string Name { get; set; }
public List<Season> Seasons { get; set; }
}
public class Season
{
public string Title { get; set; }
public List<Episode> Episodes { get; set; }
}
public class Episode
{
public string Title { get; set; }
public string File { get; set; }
public string Id { get; set; }
public string Poster { get; set; }
public string Subtitle { get; set; }
}
}