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
|
package tools.refinery.language.web.xtext.server.message;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
public final class XtextWebPushMessage implements XtextWebResponse {
@SerializedName("resource")
private String resourceId;
private String stateId;
private String service;
@SerializedName("push")
private Object pushData;
public XtextWebPushMessage(String resourceId, String stateId, String service, Object pushData) {
super();
this.resourceId = resourceId;
this.stateId = stateId;
this.service = service;
this.pushData = pushData;
}
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getStateId() {
return stateId;
}
public void setStateId(String stateId) {
this.stateId = stateId;
}
public String getService() {
return service;
}
public void setService(String service) {
this.service = service;
}
public Object getPushData() {
return pushData;
}
public void setPushData(Object pushData) {
this.pushData = pushData;
}
@Override
public int hashCode() {
return Objects.hash(pushData, resourceId, service, stateId);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
XtextWebPushMessage other = (XtextWebPushMessage) obj;
return Objects.equals(pushData, other.pushData) && Objects.equals(resourceId, other.resourceId)
&& Objects.equals(service, other.service) && Objects.equals(stateId, other.stateId);
}
@Override
public String toString() {
return "XtextWebPushMessage [resourceId=" + resourceId + ", stateId=" + stateId + ", service=" + service
+ ", pushData=" + pushData + "]";
}
}
|