Crunchy-Downloader/CRD/Utils/Structs/CrunchyStreamData.cs

50 lines
1.5 KiB
C#
Raw Normal View History

2024-05-04 15:35:32 +00:00
using System.Collections.Generic;
using Newtonsoft.Json;
2024-05-04 15:35:32 +00:00
namespace CRD.Utils.Structs;
public class CrunchyStreamData{
2024-05-04 15:35:32 +00:00
public string? AssetId{ get; set; }
public Locale? AudioLocale{ get; set; }
2024-05-04 15:35:32 +00:00
public string? Bifs{ get; set; }
public string? BurnedInLocale{ get; set; }
public Dictionary<string, Caption>? Captions{ get; set; }
public Dictionary<string, HardSub>? HardSubs{ get; set; }
public string? PlaybackType{ get; set; }
public Session? Session{ get; set; }
public Dictionary<string, Subtitle>? Subtitles{ get; set; }
public string? Token{ get; set; }
public string? Url{ get; set; }
public List<PlaybackVersion>? Versions{ get; set; }
2024-05-04 15:35:32 +00:00
}
public class Caption{
public string? Format{ get; set; }
public string? Language{ get; set; }
public string? Url{ get; set; }
}
public class HardSub{
public Locale? Hlang{ get; set; }
2024-05-04 15:35:32 +00:00
public string? Url{ get; set; }
public string? Quality{ get; set; }
}
public class Session{
public int? RenewSeconds{ get; set; }
public int? NoNetworkRetryIntervalSeconds{ get; set; }
public int? NoNetworkTimeoutSeconds{ get; set; }
public int? MaximumPauseSeconds{ get; set; }
public int? EndOfVideoUnloadSeconds{ get; set; }
public int? SessionExpirationSeconds{ get; set; }
public bool? UsesStreamLimits{ get; set; }
}
public class Subtitle{
public string? Format{ get; set; }
[JsonProperty("language")]
public Locale? Locale{ get; set; }
2024-05-04 15:35:32 +00:00
public string? Url{ get; set; }
}