-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowtime.java
More file actions
46 lines (33 loc) · 925 Bytes
/
Showtime.java
File metadata and controls
46 lines (33 loc) · 925 Bytes
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
package MESS;
public class Showtime {
private String showtime_id;
private String showtime;
private int ticketsLeft;
public Showtime(String sid, String showtime, int tixleft){
this.setShowtime_id(sid);
this.setShowtime(showtime);
this.ticketsLeft = tixleft;
}
public Showtime(String sid, String showtime){
this.setShowtime_id(sid);
this.setShowtime(showtime);
}
public String getShowtime_id() {
return showtime_id;
}
public void setShowtime_id(String showtime_id) {
this.showtime_id = showtime_id;
}
public String getShowtime() {
return showtime;
}
public void setShowtime(String showtime) {
this.showtime = showtime;
}
public int getTickets(){
return this.ticketsLeft;
}
public void setTicketsLeft(int newAmount){
this.ticketsLeft = newAmount;
}
}