-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ticket.java
80 lines (70 loc) · 1.72 KB
/
Ticket.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* @author Delaney
* @version 1.0
* 2022-11-08
*/
public class Ticket {
// private long TicketID;
private String typeOfMovie; // 2d or 3d
private int cinemaClass; // gold, standard, platinum
private String movieStatus;
// private int[] showTime;
private int ticketType; // senior citizen, standard, student
private String seatID;
private int cinemaID;
private double ticketPrice;
public Ticket(String typeOfMovie, int cinemaClass, String movieStatus, int ticketType, String seatID, int cinemaID,
double ticketPrice) {
this.typeOfMovie = typeOfMovie;
this.cinemaClass = cinemaClass;
this.movieStatus = movieStatus;
this.ticketType = ticketType;
this.seatID = seatID;
this.cinemaID = cinemaID;
this.ticketPrice = ticketPrice;
}
/**
* @return String
*/
// constructor
// get and set ticket type, get the price of the ticket type from price
public String getTypeOfMovie() {
return typeOfMovie;
}
/**
* @return int
*/
public int getCinemaClass() {
return cinemaClass;
}
/**
* @return String
*/
public String getMovieStatus() {
return movieStatus;
}
/**
* @return int
*/
public int getTicketType() {
return ticketType;
}
/**
* @return String
*/
public String getSeatID() {
return seatID;
}
/**
* @return int
*/
public int getCinemaID() {
return cinemaID;
}
/**
* @return double
*/
public double getTicketPrice() {
return ticketPrice;
}
}