diff --git a/src/app/discoteca.ts b/src/app/discoteca.ts
index 8114e04..8438b79 100644
--- a/src/app/discoteca.ts
+++ b/src/app/discoteca.ts
@@ -10,6 +10,13 @@ export class Discoteca {
private eventos: Evento[];
private descripcion: string;
+ setId(id: number): void{
+ this.id = id;
+ }
+
+ getId(): number{
+ return this.id;
+ }
setNombre(nombre: string): void{
this.nombre = nombre;
diff --git a/src/app/evento.ts b/src/app/evento.ts
index 0471ab1..4ce12b3 100644
--- a/src/app/evento.ts
+++ b/src/app/evento.ts
@@ -1,10 +1,12 @@
+import { Time } from "@angular/common";
+
export class Evento {
private id: number;
nombre: string;
localizacion: string;
fecha: Date;
dia: string;
- hora: string;
+ hora: Time;
descripcion: string;
precio1: number;
precio2: number;
@@ -49,11 +51,11 @@ export class Evento {
return this.dia;
}
- setHora(fecha: Date): void{
- this.hora = fecha.getHours()+":"+fecha.getMinutes();
+ setHora(time: Time): void{
+ this.hora = time;
}
- getHora(): string{
+ getHora(): Time{
return this.hora;
}
diff --git a/src/app/interfaces/discoteca-i.ts b/src/app/interfaces/discoteca-i.ts
index a3274f1..c5e5c93 100644
--- a/src/app/interfaces/discoteca-i.ts
+++ b/src/app/interfaces/discoteca-i.ts
@@ -1,5 +1,5 @@
export interface DiscotecaI {
- discotecaId: number,
+ discotecaID: number,
nombre: string,
telefono: number,
localizacion: string
diff --git a/src/app/interfaces/eventoi.ts b/src/app/interfaces/eventoi.ts
index 961d4e7..8926fb3 100644
--- a/src/app/interfaces/eventoi.ts
+++ b/src/app/interfaces/eventoi.ts
@@ -1,2 +1,14 @@
+import { Time } from "@angular/common";
+
export interface Eventoi {
+
+ discotecaID: number,
+ nombre: string,
+ localizacion: string,
+ fecha: Date,
+ hora: Time,
+ descripcion: string,
+ precio1: number,
+ precio2: number,
+
}
diff --git a/src/app/prompt-evento/prompt-evento.page.html b/src/app/prompt-evento/prompt-evento.page.html
index 94845bd..8e2cd63 100644
--- a/src/app/prompt-evento/prompt-evento.page.html
+++ b/src/app/prompt-evento/prompt-evento.page.html
@@ -21,7 +21,7 @@
@@ -29,6 +29,17 @@
+
+
+
+ Tu evento necesita una hora
+
+
+