mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
- Remove manual JSON and HTML building logic in Controller.cs - Eliminate unused image handling and selection logic - Remove redundant JsonSerializerOptions and helper methods - Update Episode model to remove Image property - Simplify image selection in StarLightInvoke.cs to use single source
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace StarLight.Models
|
|
{
|
|
public class SearchResult
|
|
{
|
|
public string Title { get; set; }
|
|
public string Type { get; set; }
|
|
public string Href { get; set; }
|
|
public string Channel { get; set; }
|
|
public string Project { get; set; }
|
|
}
|
|
|
|
public class SeasonInfo
|
|
{
|
|
public string Title { get; set; }
|
|
public string Slug { get; set; }
|
|
}
|
|
|
|
public class EpisodeInfo
|
|
{
|
|
public string Title { get; set; }
|
|
public string Hash { get; set; }
|
|
public string VideoSlug { get; set; }
|
|
public string Date { get; set; }
|
|
public string SeasonSlug { get; set; }
|
|
}
|
|
|
|
public class ProjectInfo
|
|
{
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public string Poster { get; set; }
|
|
public string Hash { get; set; }
|
|
public string Type { get; set; }
|
|
public string Channel { get; set; }
|
|
public List<SeasonInfo> Seasons { get; set; } = new();
|
|
public List<EpisodeInfo> Episodes { get; set; } = new();
|
|
}
|
|
|
|
public class StreamResult
|
|
{
|
|
public string Stream { get; set; }
|
|
public string Poster { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
}
|