-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserie.ts
41 lines (39 loc) · 872 Bytes
/
serie.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export class Serie {
id: number;
name: string;
channel: string;
seasons: number;
link: string;
image: string;
description: string;
constructor(index: number, name: string, seasons: number, channel: string, description: string, link: string, image: string) {
this.id = index;
this.name = name;
this.seasons = seasons;
this.channel = channel;
this.description = description;
this.link = link;
this.image = image;
}
getId() {
return this.id;
}
getName() {
return this.name;
}
getSeasons() {
return this.seasons;
}
getChannel() {
return this.channel;
}
getDescription() {
return this.description;
}
getLink() {
return this.link;
}
getImage() {
return this.image;
}
}