]> nmode's Git Repositories - signal-cli/blob - lib/src/main/java/org/asamk/signal/manager/PathConfig.java
Handle changed identity key correctly when sending message
[signal-cli] / lib / 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 private final File stickerPacksPath;
11
12 public static PathConfig createDefault(final File settingsPath) {
13 return new PathConfig(new File(settingsPath, "data"),
14 new File(settingsPath, "attachments"),
15 new File(settingsPath, "avatars"),
16 new File(settingsPath, "stickers"));
17 }
18
19 private PathConfig(
20 final File dataPath, final File attachmentsPath, final File avatarsPath, final File stickerPacksPath
21 ) {
22 this.dataPath = dataPath;
23 this.attachmentsPath = attachmentsPath;
24 this.avatarsPath = avatarsPath;
25 this.stickerPacksPath = stickerPacksPath;
26 }
27
28 public File getDataPath() {
29 return dataPath;
30 }
31
32 public File getAttachmentsPath() {
33 return attachmentsPath;
34 }
35
36 public File getAvatarsPath() {
37 return avatarsPath;
38 }
39
40 public File getStickerPacksPath() {
41 return stickerPacksPath;
42 }
43 }