Merge Local Database and Home Directory (#44)
Merge local database and home directory Fixes #43 Reviewed-on: https://git.kske.dev/zdm/envoy/pulls/44 Reviewed-by: delvh <leon@kske.dev>
This commit is contained in:
@ -2,8 +2,6 @@ package envoy.client.data;
|
||||
|
||||
import static java.util.function.Function.identity;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import envoy.data.Config;
|
||||
|
||||
/**
|
||||
@ -34,7 +32,6 @@ public final class ClientConfig extends Config {
|
||||
super(".envoy");
|
||||
put("server", "s", identity());
|
||||
put("port", "p", Integer::parseInt);
|
||||
put("localDB", "db", File::new);
|
||||
put("localDBSaveInterval", "db-si", Integer::parseInt);
|
||||
}
|
||||
|
||||
@ -50,12 +47,6 @@ public final class ClientConfig extends Config {
|
||||
*/
|
||||
public Integer getPort() { return (Integer) items.get("port").get(); }
|
||||
|
||||
/**
|
||||
* @return the local database specific to the client user
|
||||
* @since Envoy Client v0.1-alpha
|
||||
*/
|
||||
public File getLocalDB() { return (File) items.get("localDB").get(); }
|
||||
|
||||
/**
|
||||
* @return the amount of minutes after which the local database should be saved
|
||||
* @since Envoy Client v0.2-beta
|
||||
|
Reference in New Issue
Block a user