1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
package tools.refinery.language.web.xtext.servlet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
public class XtextWebSocketRequest {
private String id;
@SerializedName("resource")
private String resourceName;
private String contentType;
private String requiredStateId;
@SerializedName("request")
private List<Map<String, String>> requestData;
public XtextWebSocketRequest(String id, String resourceName, String contentType, String requiredStateId,
List<Map<String, String>> requestData) {
super();
this.id = id;
this.resourceName = resourceName;
this.contentType = contentType;
this.requiredStateId = requiredStateId;
this.requestData = requestData;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getResourceName() {
return resourceName;
}
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public String getRequiredStateId() {
return requiredStateId;
}
public void setRequiredStateId(String requiredStateId) {
this.requiredStateId = requiredStateId;
}
public List<Map<String, String>> getRequestData() {
return requestData;
}
public void setRequestData(List<Map<String, String>> requestData) {
this.requestData = requestData;
}
@Override
public int hashCode() {
return Objects.hash(contentType, id, requestData, requiredStateId, resourceName);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
XtextWebSocketRequest other = (XtextWebSocketRequest) obj;
return Objects.equals(contentType, other.contentType) && Objects.equals(id, other.id)
&& Objects.equals(requestData, other.requestData)
&& Objects.equals(requiredStateId, other.requiredStateId)
&& Objects.equals(resourceName, other.resourceName);
}
@Override
public String toString() {
return "XtextWebSocketRequest [id=" + id + ", resourceName=" + resourceName + ", contentType=" + contentType
+ ", requiredStateId=" + requiredStateId + ", requestData=" + requestData + "]";
}
}
|