Created a new shows class that only holds relevant information for shows.
This commit is contained in:
22
seasoned_api/src/media_classes/show.js
Normal file
22
seasoned_api/src/media_classes/show.js
Normal file
@@ -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;
|
||||||
Reference in New Issue
Block a user