lampac-ukraine/StarLight/Models/StarLightModels.cs
baliasnyifeliks 5bda0da6fb feat(starlight): add new online module for StarLight streaming service
- Add Controller.cs for handling StarLight API endpoints
- Add ModInit.cs for module initialization and configuration
- Add StarLightModels.cs for data models (SearchResult, ProjectInfo, etc.)
- Add OnlineApi.cs for integrating with the online API system
- Add StarLight.csproj for project configuration
- Add StarLightInvoke.cs for core functionality including search, project retrieval, and stream resolution
- Add manifest.json for module metadata and initialization

The implementation includes:
- Search functionality with caching
- Project information retrieval with season and episode handling
- Stream resolution with multiple fallback options
- Proxy support and error handling
- Integration with the existing online module system
2026-01-13 09:21:51 +02:00

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; }
}
}