From 1a858d09bb9ccf0bc1f5fa65abdfeef4f57cb86d Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 2 Sep 2017 18:10:16 +0200 Subject: [PATCH] Created a new shows class that only holds relevant information for shows. --- seasoned_api/src/media_classes/show.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 seasoned_api/src/media_classes/show.js diff --git a/seasoned_api/src/media_classes/show.js b/seasoned_api/src/media_classes/show.js new file mode 100644 index 0000000..5974ce6 --- /dev/null +++ b/seasoned_api/src/media_classes/show.js @@ -0,0 +1,22 @@ +class Movie { + constructor(title, year, type) { + this.id = undefined; + this.title = title; + this.year = year; + this.type = type; + this.release_date = undefined; + this.summary = undefined; + this.rating = undefined; + this.poster = undefined; + this.background = undefined; + this.genre = undefined; + this.added = undefined; + + this.seasons = undefined; + this.episodes = undefined; + + this.matchedInPlex = false; + } +} + +module.exports = Movie; \ No newline at end of file