MCPcopy Create free account
hub / github.com/careercup/ctci / AddRequest

Class AddRequest

java/Chapter 8/Question8_7/AddRequest.java:5–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.util.Date;
4
5public class AddRequest {
6 private User fromUser;
7 private User toUser;
8 private Date date;
9 RequestStatus status;
10
11 public AddRequest(User from, User to, Date date) {
12 fromUser = from;
13 toUser = to;
14 this.date = date;
15 status = RequestStatus.Unread;
16 }
17
18 public RequestStatus getStatus() {
19 return status;
20 }
21
22 public User getFromUser() {
23 return fromUser;
24 }
25
26 public User getToUser() {
27 return toUser;
28 }
29
30 public Date getDate() {
31 return date;
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected