summaryrefslogtreecommitdiff
path: root/POJO.cs
diff options
context:
space:
mode:
Diffstat (limited to 'POJO.cs')
-rw-r--r--POJO.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/POJO.cs b/POJO.cs
new file mode 100644
index 0000000..a19a98e
--- /dev/null
+++ b/POJO.cs
@@ -0,0 +1,48 @@
+using System.Collections.Generic;
+using System.Linq;
+using System.Text.Json.Serialization;
+
+namespace Jellyfin.Plugin.JCoverXtremePro;
+
+public class POJO
+{
+ public class MovieData
+ {
+ public Movie movie { get; set; }
+ public List<Set> sets { get; set; }
+ public List<Set> collectionSets { get; set; }
+ [JsonIgnore] public IEnumerable<Set> allSets => sets.Concat(collectionSets);
+ }
+
+ public class Set
+ {
+ public string id { get; set; }
+
+ public string set_name { get; set; }
+
+ public User user_created { get; set; }
+ public List<File> files { get; set; }
+ }
+
+ public class User
+ {
+ public string username { get; set; }
+ }
+
+ public class File
+ {
+ public string fileType { get; set; }
+ public string title { get; set; }
+ public string id { get; set; }
+
+ [JsonIgnore] public string downloadUrl => "https://api.mediux.pro/assets/" + id;
+ }
+
+ public class Movie
+ {
+ public string id { get; set; }
+ public string title { get; set; }
+ public string tagline { get; set; }
+ public string imdb_id { get; set; }
+ }
+} \ No newline at end of file