diff options
Diffstat (limited to 'src/main/java/de/torui/coflsky/commands')
-rw-r--r-- | src/main/java/de/torui/coflsky/commands/models/FlipData.java | 22 |
1 files changed, 16 insertions, 6 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 index 88836d2..0fb9357 100644 --- a/src/main/java/de/torui/coflsky/commands/models/FlipData.java +++ b/src/main/java/de/torui/coflsky/commands/models/FlipData.java @@ -1,24 +1,34 @@ package de.torui.coflsky.commands.models; import com.google.gson.annotations.SerializedName; +import de.torui.coflsky.WSCommandHandler; public class FlipData { - + @SerializedName("messages") public ChatMessageData[] Messages; - @SerializedName("id") public String Id; - @SerializedName("worth") public int Worth; - - public FlipData() {} + @SerializedName("sound") + public SoundData Sound; + @SerializedName("render") + public String Render; + + public FlipData() { + } - public FlipData(ChatMessageData[] messages, String id, int worth) { + public FlipData(ChatMessageData[] messages, String id, int worth, SoundData sound, String render) { super(); Messages = messages; Id = id; Worth = worth; + Sound = sound; + Render = render; + } + + public String getMessageAsString(){ + return WSCommandHandler.ChatMessageDataToString(this.Messages); } } |