Class ConfigRepository
The ConfigRepository that is used for loading and saving Settings to the database.
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Namespace:
Assembly: .dll
Syntax
public class ConfigRepository extends RepositoryBase
Constructors
ConfigRepository(String configPath)
Declaration
public ConfigRepository(String configPath)
Parameters
Type | Name | Description |
---|---|---|
java. |
configPath |
Methods
loadSettings(String relativeSettingsPath)
Loads the settings json from the database and deserializes it into UserSettings.
Declaration
public UserSettings loadSettings(String relativeSettingsPath)
Parameters
Type | Name | Description |
---|---|---|
java. |
relativeSettingsPath | The relative path to the settings file. |
Returns
Type | Description |
---|---|
User |
The UserSettings instance |
saveSettings(UserSettings settings, String relativeSavePath)
Saves a given UserSettings instance to the database.
Declaration
public void saveSettings(UserSettings settings, String relativeSavePath)
Parameters
Type | Name | Description |
---|---|---|
User |
settings | The settings to save |
java. |
relativeSavePath | The relative path to save them to |