tesses-cms/Tesses.CMS.Client/Movie.cs

83 lines
2.5 KiB
C#
Raw Normal View History

2023-12-16 01:40:05 +00:00
using System;
2024-01-04 02:53:13 +00:00
using System.Collections.Generic;
using Newtonsoft.Json;
2023-12-16 01:40:05 +00:00
namespace Tesses.CMS.Client
{
2024-01-04 02:53:13 +00:00
public class MovieContentMetaData
{
2024-07-28 22:59:28 +00:00
[JsonProperty("has_movie_torrent")]
public bool HasMovieTorrent{get;set;}
2024-01-04 02:53:13 +00:00
[JsonProperty("movie_torrent_url")]
public string MovieTorrentUrl {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("has_movie_with_extras_torrent")]
public bool HasMovieWithExtrasTorrent{get;set;}
2024-01-04 02:53:13 +00:00
[JsonProperty("movie_with_extras_torrent_url")]
public string MovieWithExtrasTorrentUrl {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("has_browser_stream")]
public bool HasBrowserStream {get;set;}
[JsonProperty("has_download_stream")]
public bool HasDownloadStream {get;set;}
2024-01-04 02:53:13 +00:00
[JsonProperty("browser_stream")]
public string BrowserStream {get;set;}
2024-07-28 22:59:28 +00:00
2024-01-04 02:53:13 +00:00
[JsonProperty("download_stream")]
public string DownloadStream {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("has_poster")]
public bool HasPoster {get;set;}
2024-01-04 02:53:13 +00:00
[JsonProperty("poster_url")]
public string PosterUrl {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("has_thumbnail")]
public bool HasThumbnail {get;set;}
2024-01-04 02:53:13 +00:00
[JsonProperty("thumbnail_url")]
public string ThumbnailUrl {get;set;}
[JsonProperty("subtitle_streams")]
public List<SubtitleStream> SubtitlesStreams {get;set;}=new List<SubtitleStream>();
[JsonProperty("extra_streams")]
public List<ExtraDataStream> ExtraStreams {get;set;}=new List<ExtraDataStream>();
}
public class ExtraDataStream
{
[JsonProperty("is_dir")]
public bool IsDir {get;set;}
[JsonProperty("name")]
public string Name {get;set;}
[JsonProperty("items")]
public List<ExtraDataStream> Items {get;set;}=new List<ExtraDataStream>();
[JsonProperty("url")]
public string Url {get;set;}
}
public class SubtitleStream
{
[JsonProperty("language_code")]
public string LanguageCode {get;set;}="";
[JsonProperty("url")]
public string SubtitleUrl {get;set;}
}
2023-12-16 01:40:05 +00:00
public class Movie
{
2024-07-28 22:59:28 +00:00
[JsonProperty("proper_name")]
2023-12-16 01:40:05 +00:00
public string ProperName {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("name")]
2023-12-16 01:40:05 +00:00
public string Name {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("creation_time")]
2023-12-16 01:40:05 +00:00
public DateTime CreationTime {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("last_updated_time")]
2023-12-16 01:40:05 +00:00
public DateTime LastUpdated {get;set;}
2024-07-28 22:59:28 +00:00
[JsonProperty("description")]
2023-12-16 01:40:05 +00:00
public string Description {get;set;}
}
}