]> git.somenet.org - pub/jan/dst18.git/blob - ass3-event/src/main/java/dst/ass3/event/dto/UploadEventInfoDTO.java
GITOLITE.txt
[pub/jan/dst18.git] / ass3-event / src / main / java / dst / ass3 / event / dto / UploadEventInfoDTO.java
1 package dst.ass3.event.dto;
2
3 import java.io.Serializable;
4
5 import dst.ass3.event.model.domain.IUploadEventInfo;
6 import dst.ass3.event.model.domain.RequestType;
7 import dst.ass3.event.model.domain.UploadState;
8
9 public class UploadEventInfoDTO implements Serializable, IUploadEventInfo {
10     private static final long serialVersionUID = 4134104076758220138L;
11
12     private Long requestId;
13     private Long timestamp;
14     private UploadState state;
15     private String server;
16     private RequestType requestType;
17
18     public UploadEventInfoDTO(Long requestId, Long timestamp, UploadState state, String server, RequestType requestType) {
19         this.requestId = requestId;
20         this.timestamp = timestamp;
21         this.state = state;
22         this.server = server;
23         this.requestType = requestType;
24     }
25
26     @Override
27     public Long getRequestId() {
28         return requestId;
29     }
30
31     @Override
32     public Long getTimestamp() {
33         return timestamp;
34     }
35
36     @Override
37     public UploadState getState() {
38         return state;
39     }
40
41     @Override
42     public String getServer() {
43         return server;
44     }
45
46     @Override
47     public RequestType getRequestType() {
48         return requestType;
49     }
50
51     @Override
52     public String toString() {
53         return "UploadEventInfoDTO{" +
54                 "requestId=" + requestId +
55                 ", timestamp=" + timestamp +
56                 ", state=" + state +
57                 ", server='" + server + '\'' +
58                 ", requestType=" + requestType +
59                 '}';
60     }
61 }