-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideo.java
More file actions
81 lines (65 loc) · 1.69 KB
/
Video.java
File metadata and controls
81 lines (65 loc) · 1.69 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
77
78
79
80
public class Video{
private String titulo;
private String genero;
private String creador;
private int año;
private int duracion;
protected boolean visto;
public Video(){
this.titulo = "Sin titulo";
this.genero = "Sin genero";
this.creador = "Sin creador";
this.año = 0;
this.duracion = 0;
this.visto = false;
}
public Video(String titulo, String creador){
this.titulo = titulo;
this.genero = "Sin genero";
this.creador = creador;
this.año = 0;
this.duracion = 0;
this.visto = false;
}
public Video(String titulo, String genero, String creador, int año, int duracion){
this.titulo = titulo;
this.genero = genero;
this.creador = creador;
this.año = año;
this.duracion = duracion;
this.visto = false;
}
public String getTitulo(){
return titulo;
}
public void setTitulo(String titulo){
this.titulo = titulo;
}
public String getGenero(){
return genero;
}
public void setGenero(String genero){
this.genero = genero;
}
public String getCreador(){
return creador;
}
public void setCreador(String creador){
this.creador = creador;
}
public int getAño(){
return año;
}
public void setAño(int año){
this.año = año;
}
public int getDuracion(){
return duracion;
}
public void setDuracion(int duracion){
this.duracion = duracion;
}
public String toString(){
return super.toString().concat(" \nTitulo: ").concat(getTitulo()).concat(" / Genero: ").concat(getGenero()).concat(" / Creador: ").concat(getCreador()).concat("\nAño: ").concat(String.valueOf(getAño())).concat(" / Duracion: ").concat(String.valueOf(getDuracion()));
}
}