1 package dst.ass3.messaging;
3 import java.util.Objects;
5 public class UploadRequest {
8 private RequestType type;
11 public UploadRequest() {
14 public UploadRequest(String id, RequestType type, String urn) {
20 public String getId() {
24 public void setId(String id) {
28 public RequestType getType() {
32 public void setType(RequestType type) {
36 public String getUrn() {
40 public void setUrn(String urn) {
45 public boolean equals(Object o) {
49 if (o == null || getClass() != o.getClass()) {
52 UploadRequest that = (UploadRequest) o;
53 return Objects.equals(id, that.id) &&
54 Objects.equals(type, that.type) &&
55 Objects.equals(urn, that.urn);
59 public int hashCode() {
60 return Objects.hash(id, type, urn);
64 public String toString() {
65 return "UploadRequest{" +
67 ", type='" + type + '\'' +
68 ", urn='" + urn + '\'' +