Repository navigation
Expand file tree
/
Copy pathVideos.cpp
More file actions
76 lines (60 loc) · 1.34 KB
/
Copy pathVideos.cpp
File metadata and controls
76 lines (60 loc) · 1.34 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "Videos.h"
// Constructor Default
Videos::Videos(){
type = "Default Type";
ID = 0;
name = "We didnt find a Serie with that name";
duration = 0;
genre = "Default Genre";
score = 0.0;
}
// Constructor con parámetros
Videos::Videos(string _type, int _ID, string _name, int _duration, string _genre, double _score){
type = _type;
ID = _ID;
name = _name;
duration = _duration;
genre = _genre;
score = _score;
}
// Destructor
Videos::~Videos(){
}
// GETS
string Videos::getType(){
return type;
}
int Videos::getID(){
return ID;
}
string Videos::getName(){
return name;
}
int Videos::getDuration(){
return duration;
}
string Videos::getGenre(){
return genre;
}
double Videos::getScore(){
return score;
}
// SETS
void Videos::setType(string _type){
type = _type;
}
void Videos::setID(int _ID){
ID = _ID;
}
void Videos::setName(string _name){
name = _name;
}
void Videos::setDuration(int _duration){
duration = _duration;
}
void Videos::setGenre(string _genre){
genre = _genre;
}
void Videos::setScore(int _score){
score = _score;
}