]> nmode's Git Repositories - signal-cli/blob - src/main/java/org/asamk/signal/manager/PathConfig.java
d96034dfd169cdce3cc5057df02b5ee2c405f1dd
[signal-cli] / src / main / java / org / asamk / signal / manager / PathConfig.java
1 package org.asamk.signal.manager;
2
3 import java.io.File;
4
5 public class PathConfig {
6
7 private final File dataPath;
8 private final File attachmentsPath;
9 private final File avatarsPath;
10
11 public static PathConfig createDefault(final File settingsPath) {
12 return new PathConfig(new File(settingsPath, "data"),
13 new File(settingsPath, "attachments"),
14 new File(settingsPath, "avatars"));
15 }
16
17 private PathConfig(final File dataPath, final File attachmentsPath, final File avatarsPath) {
18 this.dataPath = dataPath;
19 this.attachmentsPath = attachmentsPath;
20 this.avatarsPath = avatarsPath;
21 }
22
23 public File getDataPath() {
24 return dataPath;
25 }
26
27 public File getAttachmentsPath() {
28 return attachmentsPath;
29 }
30
31 public File getAvatarsPath() {
32 return avatarsPath;
33 }
34 }