mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 18:51:26 +00:00
reduce api surface
This commit is contained in:
@@ -161,7 +161,7 @@ public class Settings {
|
||||
}
|
||||
}
|
||||
|
||||
public SettingsJson serialized() {
|
||||
SettingsJson serialized() {
|
||||
var json = new SettingsJson();
|
||||
json.directories = directories.stream().map(VaultSettings::serialized).toList();
|
||||
json.askedForUpdateCheck = askedForUpdateCheck.get();
|
||||
|
||||
@@ -109,7 +109,7 @@ public class VaultSettings {
|
||||
return BaseEncoding.base64Url().encode(randomBytes);
|
||||
}
|
||||
|
||||
public VaultSettingsJson serialized() {
|
||||
VaultSettingsJson serialized() {
|
||||
var json = new VaultSettingsJson();
|
||||
json.id = id;
|
||||
json.path = path.map(Path::toString).getValue();
|
||||
|
||||
Reference in New Issue
Block a user