forked from lucas.delanier/MovieFinder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
697 B
36 lines
697 B
import apiTMBD from "../api/tmdb";
|
|
|
|
class Movie {
|
|
id: string
|
|
original_title: string
|
|
poster_path: string
|
|
runtime: number
|
|
vote_average: number
|
|
|
|
director: string | undefined
|
|
|
|
constructor(id: string, original_title: string, poster_path: string, runtime: number, vote_average: number, director: string | undefined) {
|
|
this.id = id;
|
|
this.original_title = original_title;
|
|
this.poster_path = poster_path;
|
|
this.runtime = runtime;
|
|
this.vote_average = vote_average;
|
|
this.director = director;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
export interface Cast {
|
|
cast: string
|
|
|
|
}
|
|
|
|
export interface People {
|
|
name: string
|
|
job: string
|
|
|
|
}
|
|
|
|
export default Movie;
|