Skip to content

Commit 6677bc4

Browse files
Added class for request
1 parent 5b84145 commit 6677bc4

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
package Common;
2+
3+
import Common.Data.Organization;
4+
import Common.Data.Worker;
5+
6+
import java.io.File;
7+
import java.io.Serializable;
8+
import java.time.LocalDateTime;
9+
10+
/**
11+
* Created by IntelliJ IDEA.
12+
*
13+
* @author Behruz Mansurov
14+
*/
15+
public class Request implements Serializable {
16+
static final long serialVersionUID = 3198040683532776052L;
17+
private String request;
18+
private Worker worker;
19+
private File file;
20+
private int id;
21+
private LocalDateTime localDateTime;
22+
private Organization organization;
23+
24+
public Request(String request, Worker worker) {
25+
this.request = request;
26+
this.worker = worker;
27+
}
28+
29+
public String getRequest() {
30+
return request;
31+
}
32+
33+
public Worker getWorker() {
34+
return worker;
35+
}
36+
37+
public File getFile() {
38+
return file;
39+
}
40+
41+
public int getId() {
42+
return id;
43+
}
44+
45+
public LocalDateTime getLocalDateTime() {
46+
return localDateTime;
47+
}
48+
49+
public Organization getOrganization() {
50+
return organization;
51+
}
52+
53+
public Request(String request, Organization organization) {
54+
this.request = request;
55+
this.organization = organization;
56+
}
57+
58+
public Request(String request, LocalDateTime localDateTime) {
59+
this.request = request;
60+
this.localDateTime = localDateTime;
61+
}
62+
63+
public Request(String request, int id) {
64+
this.request = request;
65+
this.id = id;
66+
}
67+
68+
public Request(String request, File file) {
69+
this.request = request;
70+
this.file = file;
71+
}
72+
}

0 commit comments

Comments
 (0)