Class Reserva
java.lang.Object
poo.javaevents.model.Reserva
-
Constructor Summary
ConstructorsConstructorDescriptionReserva(Cliente cliente, Evento evento, LocalDateTime fechaSeleccionada, int numeroEntradas) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the value of clienteGet the value of eventoGet the value of fechaEventoGet the value of fechaReservaintGet the value of numeroEntradasdoubleGet the value of precioTotalvoidsetCliente(Cliente cliente) Set the value of clientevoidSet the value of eventovoidsetFechaEvento(LocalDateTime fechaEvento) Set the value of fechaEventovoidsetFechaReserva(LocalDateTime fechaReserva) Set the value of fechaReservavoidsetNumeroEntradas(int numeroEntradas) Set the value of numeroEntradasvoidsetPrecioTotal(double precioTotal) Set the value of precioTotal
-
Constructor Details
-
Reserva
Constructor- Parameters:
cliente-evento-fechaSeleccionada-numeroEntradas-
-
-
Method Details
-
getPrecioTotal
public double getPrecioTotal()Get the value of precioTotal- Returns:
- the value of precioTotal
-
setPrecioTotal
public void setPrecioTotal(double precioTotal) Set the value of precioTotal- Parameters:
precioTotal- new value of precioTotal
-
getNumeroEntradas
public int getNumeroEntradas()Get the value of numeroEntradas- Returns:
- the value of numeroEntradas
-
setNumeroEntradas
public void setNumeroEntradas(int numeroEntradas) Set the value of numeroEntradas- Parameters:
numeroEntradas- new value of numeroEntradas
-
getFechaEvento
Get the value of fechaEvento- Returns:
- the value of fechaEvento
-
setFechaEvento
Set the value of fechaEvento- Parameters:
fechaEvento- new value of fechaEvento
-
getFechaReserva
Get the value of fechaReserva- Returns:
- the value of fechaReserva
-
setFechaReserva
Set the value of fechaReserva- Parameters:
fechaReserva- new value of fechaReserva
-
getEvento
-
setEvento
Set the value of evento- Parameters:
evento- new value of evento
-
getCliente
-
setCliente
Set the value of cliente- Parameters:
cliente- new value of cliente
-