Discofy/src/app/galeria.ts
2021-01-18 14:01:50 +01:00

22 lines
384 B
TypeScript

export class Galeria {
private id: number;
private discoteca: string;
private fotos: string[];
addFoto(src: string){
this.fotos.push(src);
}
setDiscoteca(nombre: string): void{
this.discoteca = nombre;
}
getDiscoteca(): string{
return this.discoteca;
}
getGaleria(): string[]{
return this.fotos;
}
}