diff options
author | Äkwav <16632490+Ekwav@users.noreply.github.com> | 2022-04-12 00:02:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 00:02:21 +0200 |
commit | e3aedc3ffea344fbdda63aeb8a3fae8af9b1e681 (patch) | |
tree | a70fabbbaadacd370dba53058a078bbc0c7284e0 /src/main/java/de/torui/coflsky/commands | |
parent | 507b9c2768ed6dafff82460fbe743a48f6fa631a (diff) | |
download | COFL-e3aedc3ffea344fbdda63aeb8a3fae8af9b1e681.tar.gz COFL-e3aedc3ffea344fbdda63aeb8a3fae8af9b1e681.tar.bz2 COFL-e3aedc3ffea344fbdda63aeb8a3fae8af9b1e681.zip |
Feature/countdown (#54)
* v1
* fixes #20
* code review comments
* update version
* fix aliases
Diffstat (limited to 'src/main/java/de/torui/coflsky/commands')
3 files changed, 24 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/commands/CommandType.java b/src/main/java/de/torui/coflsky/commands/CommandType.java index ead7d3e..3d4ec05 100644 --- a/src/main/java/de/torui/coflsky/commands/CommandType.java +++ b/src/main/java/de/torui/coflsky/commands/CommandType.java @@ -35,6 +35,8 @@ public enum CommandType { Reset, @SerializedName("flip") Flip, + @SerializedName("countdown") + Countdown, ; public static Map<CommandType,String> data; static { diff --git a/src/main/java/de/torui/coflsky/commands/models/FlipData.java b/src/main/java/de/torui/coflsky/commands/models/FlipData.java index bdd955b..88836d2 100644 --- a/src/main/java/de/torui/coflsky/commands/models/FlipData.java +++ b/src/main/java/de/torui/coflsky/commands/models/FlipData.java @@ -21,6 +21,4 @@ public class FlipData { Id = id; Worth = worth; } - - } diff --git a/src/main/java/de/torui/coflsky/commands/models/TimerData.java b/src/main/java/de/torui/coflsky/commands/models/TimerData.java new file mode 100644 index 0000000..50b3d68 --- /dev/null +++ b/src/main/java/de/torui/coflsky/commands/models/TimerData.java @@ -0,0 +1,22 @@ +package de.torui.coflsky.commands.models; + +import com.google.gson.annotations.SerializedName; + +public class TimerData { + + @SerializedName("seconds") + public double seconds; + + @SerializedName("heightPercent") + public int height; + @SerializedName("widthPercent") + public int width; + @SerializedName("scale") + public double scale; + + @SerializedName("prefix") + public String prefix; + + @SerializedName("maxPrecision") + public int maxPrecision; +} |