2024-05-04 15:35:32 +00:00
|
|
|
|
using System.Collections.Generic;
|
2024-06-06 01:08:13 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
namespace CRD.Utils.Structs;
|
|
|
|
|
|
2024-06-06 01:08:13 +00:00
|
|
|
|
public class CrunchyStreamData{
|
2024-05-04 15:35:32 +00:00
|
|
|
|
public string? AssetId{ get; set; }
|
2024-06-06 01:08:13 +00:00
|
|
|
|
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; }
|
2024-06-06 01:08:13 +00:00
|
|
|
|
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{
|
2024-06-11 21:58:44 +00:00
|
|
|
|
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; }
|
2024-06-06 01:08:13 +00:00
|
|
|
|
[JsonProperty("language")]
|
|
|
|
|
public Locale? Locale{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
public string? Url{ get; set; }
|
2024-06-06 01:08:13 +00:00
|
|
|
|
}
|
|
|
|
|
|