mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 01:24:37 +02:00
support multiple servers
This commit is contained in:
parent
9a7b2e8172
commit
29fd29728a
8 changed files with 68 additions and 38 deletions
|
@ -17,6 +17,11 @@ class ServerConnectionConfig: Object {
|
|||
@Persisted var username: String
|
||||
@Persisted var token: String
|
||||
}
|
||||
class ServerConnectionConfigActiveIndex: Object {
|
||||
// This could overflow, but you really would have to try
|
||||
@Persisted var index: Int?
|
||||
|
||||
}
|
||||
|
||||
func convertServerConnectionConfigToJSON(config: ServerConnectionConfig) -> Dictionary<String, Any> {
|
||||
return Database.realmQueue.sync {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue