aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/commands/models
diff options
context:
space:
mode:
authorTorui <44932079+ToruiDev@users.noreply.github.com>2022-01-24 20:00:02 +0100
committerGitHub <noreply@github.com>2022-01-24 20:00:02 +0100
commit1caa3e1840e51800200458b776712f38b470d772 (patch)
tree1df9f67493c87ae24f19cb1f1c8ffa9503b4125b /src/main/java/de/torui/coflsky/commands/models
parent4d2b8de15b223b2c9dfe389db36a593b1fabff0b (diff)
downloadCOFL-1caa3e1840e51800200458b776712f38b470d772.tar.gz
COFL-1caa3e1840e51800200458b776712f38b470d772.tar.bz2
COFL-1caa3e1840e51800200458b776712f38b470d772.zip
Feature/support new flips (#47)
* added rudimentary support for the new flips * Keypress * send "clicked" command * maybe fix the ConcurrentModificationException * add synchronized to relevant pieces of code * premature optimization * change timings to 50 seconds * switched to config file * workaround for #48 * change debounce mechanism * cofl track * fix #49 * fix command not getting data serialized * . * add id on claim * unset hotkey * Apply suggestions from code review remove tab from empty line Co-authored-by: Äkwav <16632490+Ekwav@users.noreply.github.com>
Diffstat (limited to 'src/main/java/de/torui/coflsky/commands/models')
-rw-r--r--src/main/java/de/torui/coflsky/commands/models/FlipData.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/de/torui/coflsky/commands/models/FlipData.java b/src/main/java/de/torui/coflsky/commands/models/FlipData.java
new file mode 100644
index 0000000..bdd955b
--- /dev/null
+++ b/src/main/java/de/torui/coflsky/commands/models/FlipData.java
@@ -0,0 +1,26 @@
+package de.torui.coflsky.commands.models;
+
+import com.google.gson.annotations.SerializedName;
+
+public class FlipData {
+
+ @SerializedName("messages")
+ public ChatMessageData[] Messages;
+
+ @SerializedName("id")
+ public String Id;
+
+ @SerializedName("worth")
+ public int Worth;
+
+ public FlipData() {}
+
+ public FlipData(ChatMessageData[] messages, String id, int worth) {
+ super();
+ Messages = messages;
+ Id = id;
+ Worth = worth;
+ }
+
+
+}