aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/commands/models
diff options
context:
space:
mode:
authorAbhiram555 <63419731+Sasuke449@users.noreply.github.com>2023-01-19 03:57:35 +0530
committerGitHub <noreply@github.com>2023-01-18 23:27:35 +0100
commit2297be65c50d36916e6efc690ad297a149590e1f (patch)
tree075f9ef1e705dad32780967e972c24f5278ef46d /src/main/java/de/torui/coflsky/commands/models
parent701ee2bd3ad9c786bb966616e45b6d46b3362a64 (diff)
downloadCOFL-2297be65c50d36916e6efc690ad297a149590e1f.tar.gz
COFL-2297be65c50d36916e6efc690ad297a149590e1f.tar.bz2
COFL-2297be65c50d36916e6efc690ad297a149590e1f.zip
Fixed issue #81 (#82)
* Remove the useless relocation in gradle * Implement the getMods command * Update src/main/java/de/torui/coflsky/commands/models/ModListData.java 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/ModListData.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/de/torui/coflsky/commands/models/ModListData.java b/src/main/java/de/torui/coflsky/commands/models/ModListData.java
new file mode 100644
index 0000000..f654ecd
--- /dev/null
+++ b/src/main/java/de/torui/coflsky/commands/models/ModListData.java
@@ -0,0 +1,33 @@
+package de.torui.coflsky.commands.models;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.LinkedList;
+import java.util.List;
+
+public class ModListData {
+
+ @SerializedName("fileNames")
+ private final List<String> fileNames = new LinkedList<>();
+
+ @SerializedName("modNames")
+ private final List<String> modNames = new LinkedList<>();
+
+ @SerializedName("fileHashes")
+ private final List<String> fileHashes = new LinkedList<>();
+
+
+ public void addFilename(String name){
+ this.fileNames.add(name);
+ }
+
+ public void addModname(String modname){
+ this.modNames.add(modname);
+ }
+
+ public void addFileHashes(String hash){
+ this.fileHashes.add(hash);
+ }
+
+
+}