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.
27 lines
629 B
27 lines
629 B
class Review {
|
|
public message: string
|
|
|
|
public pseudo: string
|
|
|
|
public profil_path: string
|
|
|
|
public date: string
|
|
|
|
|
|
constructor(message: string, profil_path: string, date: string, pseudo: string) {
|
|
this.message = message;
|
|
if (profil_path === null) {
|
|
this.profil_path = "https://thumbs.dreamstime.com/b/profil-vectoriel-avatar-par-d%C3%A9faut-utilisateur-179376714.jpg";
|
|
} else {
|
|
this.profil_path = 'https://image.tmdb.org/t/p/w185' + profil_path;
|
|
}
|
|
|
|
this.date = date.substring(0, 10);
|
|
this.pseudo = pseudo;
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
export default Review; |