-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
86 lines (62 loc) · 2.08 KB
/
User.java
File metadata and controls
86 lines (62 loc) · 2.08 KB
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
81
82
83
84
85
86
package ProgAssignment4;
import java.text.ParseException;
import java.util.ArrayList;
public abstract class User {
private String id, pin, idType;
private String name, address; private String phoneNum;
protected boolean access = true; //block identifier when false
User(String id, String pin){
this.id = id;
this.pin = pin;
}
User(String id, String pin, boolean access){
this.id = id;
this.pin = pin;
this.access = access;
}
public String getidType(){ return idType;}
public String getId() { return id; }
public void setId(String id) { this.id = id;}
public String getPin() { return pin;}
public void setPin(String pin) { this.pin = pin;}
public String getName() { return name;}
public void setName(String name) { this.name = name;}
public String getAddress() { return address;}
public void setAddress(String address) { this.address = address;}
public String getPhoneNum() { return phoneNum;}
public void setPhoneNum(String phoneNum) { this.phoneNum = phoneNum;}
public boolean isAccess() { return access;}
public boolean setAccess(boolean access) { return this.access = access;}
public String getRental() { return "this is a generic rental";}
public void setRental(String rental) { /*this.rental = rental;*/ }
public void setRental(String rental, Book catalog) {
}
public void addRental(String magicCode) throws ParseException {
// TODO Auto-generated method stub
}
public boolean returnBook(String magicCode) throws ParseException{
return false;
}
@Override
public String toString(){
return getId() + " " + getPin() + " " + getName() + " " + getAddress() + " " + getPhoneNum();
}
public void checkAccess() throws ParseException {
// TODO Auto-generated method stub
}
public ArrayList<String> getRentalArray() {
// TODO Auto-generated method stub
return null;
}
public ArrayList<String> getrentalDueDates() {
// TODO Auto-generated method stub
return null;
}
public String getBlock() {
// TODO Auto-generated method stub
return null;
}
public void removeRental(String code) {
// TODO Auto-generated method stub
}
}