blob: 20ab8f1fb5e7c2a2a77323c4f032fdd43ba91eaf (
plain)
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
|
package de.torui.coflsky.commands;
import com.google.gson.annotations.SerializedName;
public class Command<T> {
@SerializedName("type")
private CommandType Type;
@SerializedName("data")
private T data;
public Command() {
}
public Command(CommandType type, T data) {
super();
Type = type;
this.data = data;
}
public CommandType getType() {
return Type;
}
public void setType(CommandType type) {
Type = type;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
@Override
public String toString() {
return "Command [Type=" + Type + ", data=" + data + "]";
}
}
|