From e3aedc3ffea344fbdda63aeb8a3fae8af9b1e681 Mon Sep 17 00:00:00 2001 From: Äkwav <16632490+Ekwav@users.noreply.github.com> Date: Tue, 12 Apr 2022 00:02:21 +0200 Subject: Feature/countdown (#54) * v1 * fixes #20 * code review comments * update version * fix aliases --- .../de/torui/coflsky/commands/CommandType.java | 2 ++ .../de/torui/coflsky/commands/models/FlipData.java | 2 -- .../torui/coflsky/commands/models/TimerData.java | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/main/java/de/torui/coflsky/commands/models/TimerData.java (limited to 'src/main/java/de/torui/coflsky/commands') 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 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; +} -- cgit