]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/PathConfig.java
Refactor ReceiveCommand in dbus mode and remove ExtendedDbusCommand
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / PathConfig.java
index d96034dfd169cdce3cc5057df02b5ee2c405f1dd..d045ac4ac5a4929100e7d2c3984fccd6eb89a8c1 100644 (file)
@@ -2,33 +2,14 @@ package org.asamk.signal.manager;
 
 import java.io.File;
 
-public class PathConfig {
-
-    private final File dataPath;
-    private final File attachmentsPath;
-    private final File avatarsPath;
+public record PathConfig(
+        File dataPath, File attachmentsPath, File avatarsPath, File stickerPacksPath
+) {
 
     public static PathConfig createDefault(final File settingsPath) {
         return new PathConfig(new File(settingsPath, "data"),
                 new File(settingsPath, "attachments"),
-                new File(settingsPath, "avatars"));
-    }
-
-    private PathConfig(final File dataPath, final File attachmentsPath, final File avatarsPath) {
-        this.dataPath = dataPath;
-        this.attachmentsPath = attachmentsPath;
-        this.avatarsPath = avatarsPath;
-    }
-
-    public File getDataPath() {
-        return dataPath;
-    }
-
-    public File getAttachmentsPath() {
-        return attachmentsPath;
-    }
-
-    public File getAvatarsPath() {
-        return avatarsPath;
+                new File(settingsPath, "avatars"),
+                new File(settingsPath, "stickers"));
     }
 }