]>
nmode's Git Repositories - signal-cli/blob - lib/src/main/java/org/asamk/signal/manager/PathConfig.java
1 package org
.asamk
.signal
.manager
;
5 public class PathConfig
{
7 private final File dataPath
;
8 private final File attachmentsPath
;
9 private final File avatarsPath
;
10 private final File stickerPacksPath
;
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"));
20 final File dataPath
, final File attachmentsPath
, final File avatarsPath
, final File stickerPacksPath
22 this.dataPath
= dataPath
;
23 this.attachmentsPath
= attachmentsPath
;
24 this.avatarsPath
= avatarsPath
;
25 this.stickerPacksPath
= stickerPacksPath
;
28 public File
getDataPath() {
32 public File
getAttachmentsPath() {
33 return attachmentsPath
;
36 public File
getAvatarsPath() {
40 public File
getStickerPacksPath() {
41 return stickerPacksPath
;