-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequest.java
More file actions
36 lines (29 loc) · 852 Bytes
/
Request.java
File metadata and controls
36 lines (29 loc) · 852 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
package com.example.healthsuppliesdonation;
public class Request {
private String hospitalName;
private String suppliesNeeded;
private String phoneNumber;
private String email;
public Request(String hospitalName, String suppliesNeeded, String phoneNumber, String email) {
this.hospitalName = hospitalName;
this.suppliesNeeded = suppliesNeeded;
this.phoneNumber = phoneNumber;
this.email = email;
}
public String getHospitalName() {
return hospitalName;
}
public String getSuppliesNeeded() {
return suppliesNeeded;
}
public String getPhoneNumber() {
return phoneNumber;
}
public String getEmail() {
return email;
}
@Override
public String toString() {
return hospitalName + " needs " + suppliesNeeded;
}
}