diff options
author | Florian Rinke <develop@torui.de> | 2021-11-05 20:17:35 +0100 |
---|---|---|
committer | Florian Rinke <develop@torui.de> | 2021-11-05 20:17:35 +0100 |
commit | e533c7f6f9860479f5f472280d6fce8b87d8d0b8 (patch) | |
tree | ad90d70a17908fab7325d5eee30f0c20b3192081 /src/main/java/de/torui/coflsky/commands/Command.java | |
parent | 0e9a5837522132b946ab1568ad0485622f32a921 (diff) | |
download | COFL-e533c7f6f9860479f5f472280d6fce8b87d8d0b8.tar.gz COFL-e533c7f6f9860479f5f472280d6fce8b87d8d0b8.tar.bz2 COFL-e533c7f6f9860479f5f472280d6fce8b87d8d0b8.zip |
rename de.torui.coflsky.core to commands in for refactor
Diffstat (limited to 'src/main/java/de/torui/coflsky/commands/Command.java')
-rw-r--r-- | src/main/java/de/torui/coflsky/commands/Command.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/main/java/de/torui/coflsky/commands/Command.java b/src/main/java/de/torui/coflsky/commands/Command.java new file mode 100644 index 0000000..20ab8f1 --- /dev/null +++ b/src/main/java/de/torui/coflsky/commands/Command.java @@ -0,0 +1,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 + "]"; + } + +} + |