From 2297be65c50d36916e6efc690ad297a149590e1f Mon Sep 17 00:00:00 2001 From: Abhiram555 <63419731+Sasuke449@users.noreply.github.com> Date: Thu, 19 Jan 2023 03:57:35 +0530 Subject: Fixed issue #81 (#82) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- .../torui/coflsky/commands/models/ModListData.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/java/de/torui/coflsky/commands/models/ModListData.java (limited to 'src/main/java/de/torui/coflsky/commands/models') 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 fileNames = new LinkedList<>(); + + @SerializedName("modNames") + private final List modNames = new LinkedList<>(); + + @SerializedName("fileHashes") + private final List 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); + } + + +} -- cgit