Class Booking

java.lang.Object
moblima.entities.Booking

public class Booking extends Object
The type Booking.
  • 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 id
      customerId - the customer id
      cinemaId - the cinema id
      movieId - the movie id
      showtimeId - the showtime id
      seats - the seats
      totalPrice - the total price
      type - the type
    • Booking

      public Booking(Booking cloneBooking)
      Instantiates a new Booking.
      Parameters:
      cloneBooking - the clone booking
  • Method Details

    • getTransactionId

      public String getTransactionId()
      Gets transaction id.
      Returns:
      the transaction id
    • setTransactionId

      public void setTransactionId(String transactionId)
      Sets transaction id.
      Parameters:
      transactionId - the transaction id
    • getCustomerId

      public String getCustomerId()
      Gets customer id.
      Returns:
      the customer id
    • setCustomerId

      public void setCustomerId(String customerId)
      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

      public String getShowtimeId()
      Gets showtime id.
      Returns:
      the showtime id
    • setShowtimeId

      public void setShowtimeId(String showtimeId)
      Sets showtime id.
      Parameters:
      showtimeId - the showtime id
    • getSeats

      public List<int[]> getSeats()
      Gets seats.
      Returns:
      the seats
    • setSeats

      public void setSeats(List<int[]> seats)
      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

      public Booking.TicketType getType()
      Gets type.
      Returns:
      the type
    • setType

      public void setType(Booking.TicketType type)
      Sets type.
      Parameters:
      type - the type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object