summaryrefslogtreecommitdiff
path: root/POJO.cs
diff options
context:
space:
mode:
Diffstat (limited to 'POJO.cs')
-rw-r--r--POJO.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/POJO.cs b/POJO.cs
index 7f44d53..dcc91a0 100644
--- a/POJO.cs
+++ b/POJO.cs
@@ -1,3 +1,4 @@
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
@@ -15,6 +16,17 @@ public class POJO
[JsonIgnore] public IEnumerable<Set> allSets => sets.Concat(collectionSets);
}
+ public class SetData
+ {
+ public Set set { get; set; }
+ }
+
+ public class ShowData
+ {
+ // public Show show { get; set; }
+ public List<Set> sets { get; set; }
+ }
+
public class Set
{
public string id { get; set; }
@@ -23,6 +35,29 @@ public class POJO
public User user_created { get; set; }
public List<File> files { get; set; }
+ public Show? show { get; set; }
+ }
+
+ public class Show
+ {
+ public string id { get; set; }
+ public string name { get; set; }
+ public List<Season> seasons { get; set; }
+ }
+
+ public class Season
+ {
+ public string id { get; set; }
+ public int season_number { get; set; }
+ public string name { get; set; }
+ public List<Episode> episodes { get; set; }
+ }
+
+ public class Episode
+ {
+ public int episode_number { get; set; }
+ public string episode_name { get; set; }
+ public string id { get; set; }
}
public class User
@@ -30,11 +65,17 @@ public class POJO
public string username { get; set; }
}
+ public class EpisodeId
+ {
+ public string id { get; set; }
+ }
+
public class File
{
public string fileType { get; set; }
public string title { get; set; }
public string id { get; set; }
+ public EpisodeId? episode_id { get; set; }
public ImageType? JellyFinFileType()
{
@@ -43,6 +84,7 @@ public class POJO
case "backdrop":
return ImageType.Backdrop;
case "poster":
+ case "title_card":
return ImageType.Primary;
}