mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 19:34:25 +02:00
KeyValueStore enhancements
This commit is contained in:
@@ -24,12 +24,17 @@ protocol KeyValueStore {
|
||||
func set(_ value: String?, forKey key: KeyValueStoreKey) throws
|
||||
func set(_ value: Bool?, forKey key: KeyValueStoreKey) throws
|
||||
func set(_ value: Int?, forKey key: KeyValueStoreKey) throws
|
||||
func set(_ value: UInt?, forKey key: KeyValueStoreKey) throws
|
||||
|
||||
// getters
|
||||
func data(forKey key: KeyValueStoreKey) throws -> Data?
|
||||
func string(forKey key: KeyValueStoreKey) throws -> String?
|
||||
func bool(forKey key: KeyValueStoreKey) throws -> Bool?
|
||||
func integer(forKey key: KeyValueStoreKey) throws -> Int?
|
||||
func unsignedInteger(forKey key: KeyValueStoreKey) throws -> UInt?
|
||||
|
||||
// checkers
|
||||
func containsObject(forKey key: KeyValueStoreKey) -> Bool
|
||||
|
||||
// remove
|
||||
func removeObject(forKey key: KeyValueStoreKey) throws
|
||||
|
||||
Reference in New Issue
Block a user