aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/java/tools/refinery/language/web/xtext/XtextWebSocketOkResponse.java
blob: 4ef1768b872bdab4a1f146c71804302f32ea243f (plain) (blame)
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
package tools.refinery.language.web.xtext;

import java.util.Objects;

import com.google.gson.annotations.SerializedName;

public final class XtextWebSocketOkResponse implements XtextWebSocketResponse {
	private String id;

	@SerializedName("response")
	private Object responseData;

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public Object getResponseData() {
		return responseData;
	}

	public void setResponseData(Object responseData) {
		this.responseData = responseData;
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, responseData);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		XtextWebSocketOkResponse other = (XtextWebSocketOkResponse) obj;
		return Objects.equals(id, other.id) && Objects.equals(responseData, other.responseData);
	}

	@Override
	public String toString() {
		return "XtextWebSocketResponse [id=" + id + ", responseData=" + responseData + "]";
	}
}