|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
class Movie {
|
|
|
|
|
|
|
|
|
|
public id: number
|
|
|
|
|
public original_title: string
|
|
|
|
|
|
|
|
|
|
public poster_path: string
|
|
|
|
@ -9,7 +11,8 @@ class Movie {
|
|
|
|
|
public genres: string[]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(original_title: string, poster_path: string, runtime: number, vote_average: number, release_date: string, genres: string[], overview: string) {
|
|
|
|
|
constructor(original_title: string, poster_path: string, runtime: number, vote_average: number, release_date: string, genres: string[], overview: string, id: number) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.original_title = original_title;
|
|
|
|
|
this.poster_path = 'https://image.tmdb.org/t/p/w780' + poster_path;
|
|
|
|
|
this.runtime = runtime;
|
|
|
|
|