SWConnectedAccountCacheManager
class SWConnectedAccountCacheManager
Undocumented
-
Undocumented
Declaration
Swift
fileprivate var storageKeyConstant: String
-
Undocumented
Declaration
Swift
func getConnectedAccount(completion:@escaping (([SWAccount]) -> Void))
-
gets the connected accounts from the server and updates the local cache
Declaration
Swift
private func getConnectedAccountsFromServer(successHandler:@escaping (([SWAccount]) -> Void))
Parameters
successHandler
<#successHandler description#>
-
stores the connected information to the local storage
Declaration
Swift
private func storeConnectedAccounts(accounts: [SWAccount])
Parameters
accounts
accounts to be stored
-
updates the cache with api stored information
Declaration
Swift
func updateCache(successHandler:@escaping (([SWAccount]) -> Void))