]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/PathConfig.java
Implement editing of previous messages
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / PathConfig.java
index 2c85108001e5da33db0c65e610a510ea01a8ad93..f3bacdc3dd61e67d76a4889debe05d74236a4677 100644 (file)
@@ -2,42 +2,14 @@ package org.asamk.signal.manager;
 
 import java.io.File;
 
-public class PathConfig {
+record PathConfig(
+        File dataPath, File attachmentsPath, File avatarsPath, File stickerPacksPath
+) {
 
-    private final File dataPath;
-    private final File attachmentsPath;
-    private final File avatarsPath;
-    private final File stickerPacksPath;
-
-    public static PathConfig createDefault(final File settingsPath) {
+    static PathConfig createDefault(final File settingsPath) {
         return new PathConfig(new File(settingsPath, "data"),
                 new File(settingsPath, "attachments"),
                 new File(settingsPath, "avatars"),
                 new File(settingsPath, "stickers"));
     }
-
-    private PathConfig(
-            final File dataPath, final File attachmentsPath, final File avatarsPath, final File stickerPacksPath
-    ) {
-        this.dataPath = dataPath;
-        this.attachmentsPath = attachmentsPath;
-        this.avatarsPath = avatarsPath;
-        this.stickerPacksPath = stickerPacksPath;
-    }
-
-    public File getDataPath() {
-        return dataPath;
-    }
-
-    public File getAttachmentsPath() {
-        return attachmentsPath;
-    }
-
-    public File getAvatarsPath() {
-        return avatarsPath;
-    }
-
-    public File getStickerPacksPath() {
-        return stickerPacksPath;
-    }
 }