source:
sources/app/src/main/java/parkup/data/WorkerDemo.java@
843a941
Last change on this file since 843a941 was df4089c, checked in by , 3 years ago | |
---|---|
|
|
File size: 1021 bytes |
Rev | Line | |
---|---|---|
[97fbc67] | 1 | package parkup.data; |
2 | ||
[df4089c] | 3 | import parkup.entities.Worker; |
4 | ||
[9dd526f] | 5 | public class WorkerDemo { |
6 | private int workerId; | |
[97fbc67] | 7 | private String firstName; |
8 | private String lastName; | |
9 | private String email; | |
10 | ||
[9dd526f] | 11 | public WorkerDemo() {} |
[97fbc67] | 12 | |
[df4089c] | 13 | public WorkerDemo(Worker w) { |
14 | this.workerId =w.getWorkerId(); | |
15 | this.firstName = w.getFirstName(); | |
16 | this.lastName = w.getLastName(); | |
17 | this.email = w.getEmail(); | |
[97fbc67] | 18 | } |
19 | ||
[df4089c] | 20 | |
[9dd526f] | 21 | public int getWorkerId() { |
22 | return workerId; | |
[9ff45d6] | 23 | } |
24 | ||
[9dd526f] | 25 | public void setWorkerId(int workerId) { |
26 | this.workerId = workerId; | |
[9ff45d6] | 27 | } |
28 | ||
[97fbc67] | 29 | public String getFirstName() { |
30 | return firstName; | |
31 | } | |
32 | ||
33 | public void setFirstName(String firstName) { | |
34 | this.firstName = firstName; | |
35 | } | |
36 | ||
37 | public String getLastName() { | |
38 | return lastName; | |
39 | } | |
40 | ||
41 | public void setLastName(String lastName) { | |
42 | this.lastName = lastName; | |
43 | } | |
44 | ||
45 | public String getEmail() { | |
46 | return email; | |
47 | } | |
48 | ||
49 | public void setEmail(String email) { | |
50 | this.email = email; | |
51 | } | |
52 | } | |
53 |
Note:
See TracBrowser
for help on using the repository browser.