Package moblima.entities
Class Booking
java.lang.Object
moblima.entities.Booking
The type Booking.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets cinema id.Gets customer id.int
Gets movie id.List<int[]>
getSeats()
Gets seats.Gets showtime id.double
Gets total price.Gets transaction id.getType()
Gets type.int
hashCode()
void
setCinemaId
(int cinemaId) Sets cinema id.void
setCustomerId
(String customerId) Sets customer id.void
setMovieId
(int movieId) Sets movie id.void
Sets seats.void
setShowtimeId
(String showtimeId) Sets showtime id.void
setTotalPrice
(double totalPrice) Sets total price.void
setTransactionId
(String transactionId) Sets transaction id.void
setType
(Booking.TicketType type) Sets type.toString()
-
Constructor Details
-
Booking
public Booking(String transactionId, String customerId, int cinemaId, int movieId, String showtimeId, List<int[]> seats, double totalPrice, Booking.TicketType type) Instantiates a new Booking.- Parameters:
transactionId
- the transaction idcustomerId
- the customer idcinemaId
- the cinema idmovieId
- the movie idshowtimeId
- the showtime idseats
- the seatstotalPrice
- the total pricetype
- the type
-
Booking
Instantiates a new Booking.- Parameters:
cloneBooking
- the clone booking
-
-
Method Details
-
getTransactionId
Gets transaction id.- Returns:
- the transaction id
-
setTransactionId
Sets transaction id.- Parameters:
transactionId
- the transaction id
-
getCustomerId
Gets customer id.- Returns:
- the customer id
-
setCustomerId
Sets customer id.- Parameters:
customerId
- the customer id
-
getCinemaId
public int getCinemaId()Gets cinema id.- Returns:
- the cinema id
-
setCinemaId
public void setCinemaId(int cinemaId) Sets cinema id.- Parameters:
cinemaId
- the cinema id
-
getMovieId
public int getMovieId()Gets movie id.- Returns:
- the movie id
-
setMovieId
public void setMovieId(int movieId) Sets movie id.- Parameters:
movieId
- the movie id
-
getShowtimeId
Gets showtime id.- Returns:
- the showtime id
-
setShowtimeId
Sets showtime id.- Parameters:
showtimeId
- the showtime id
-
getSeats
Gets seats.- Returns:
- the seats
-
setSeats
Sets seats.- Parameters:
seats
- the seats
-
getTotalPrice
public double getTotalPrice()Gets total price.- Returns:
- the total price
-
setTotalPrice
public void setTotalPrice(double totalPrice) Sets total price.- Parameters:
totalPrice
- the total price
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type
-
toString
-
equals
-
hashCode
public int hashCode()
-