Add procs for save/get settings

This commit is contained in:
Richard Ramos 2020-06-01 09:47:06 -04:00 committed by Iuri Matias
parent 470687c2a6
commit f16de508ed
1 changed files with 11 additions and 0 deletions

11
src/status/settings.nim Normal file
View File

@ -0,0 +1,11 @@
import core
import json
proc saveSettings*(key: string, value = JsonNode) =
discard callPrivateRPC("settings_saveSetting", %* [
[key, value]
])
proc getSettings*(): string = callPrivateRPC("settings_getSettings")
# TODO: return an Table/Object instead of string