Package com.esprit.models.films
Class Ticket
java.lang.Object
com.esprit.models.films.Ticket
The Ticket class represents a ticket for a movie session.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Client
private Long
private MovieSession
private int
private float
-
Constructor Summary
ConstructorsConstructorDescriptionTicket
(int numberOfSeats, Client client, MovieSession movieSession, float price) Constructor without id for creating new ticket instances. -
Method Summary
-
Field Details
-
id
-
numberOfSeats
private int numberOfSeats -
client
-
movieSession
-
price
private float price -
reservedSeats
-
-
Constructor Details
-
Ticket
Constructor without id for creating new ticket instances.- Parameters:
numberOfSeats
- The number of seats for the ticket.client
- The client associated with the ticket.movieSession
- The movie session associated with the ticket.price
- The price of the ticket.
-