UserServiceProfileManager
@objc public class UserServiceProfileManager: NSObject, IUserServiceProfileManager
-
Singleton shared instance.
Declaration
Swift
public static var instance: UserServiceProfileManager -
Resets the current UserServiceProfileManager instance. It will need to be reinitialized before it can be used again.
Declaration
Swift
public static func reset() -> Void -
Declaration
Swift
public let maxUserDataFetchCount = 25 -
Flag set when the UserProfileManager has successfully initialized.
Declaration
Swift
public private(set) var initialized = false -
Declaration
Swift
public func initialize() -> Promise<Response> -
Declaration
Swift
public func initialize(manifest: Manifest, darkMatter: IDarkMatter, userService: IUserService, dataModel: UserServiceDataModel, networkManager: INetworkManager, gameService: IGameService) -> Promise<Response> -
Declaration
Swift
public func addUserData(userProfile: UserServiceProfile, overwrite: Bool = false) -> Promise<Response> -
Declaration
Swift
public func getUserDictionary(userIds: [String]) -> [String : UserServiceProfile?]? -
Declaration
Swift
public func getUserData(userIds: [String], fetchIfNotFound: Bool, stopOnFail: Bool, fetchQueueId: String ) -> Promise<[String : UserServiceProfile?]> -
Declaration
Swift
public func getUserData(userId: String, fetchIfNotFound: Bool, fetchQueueId: String) -> Promise<UserServiceProfile> -
Declaration
Swift
public func getAllUserData() -> Promise<[String: UserServiceProfile]> -
Declaration
Swift
public func setLocalUserData(localUserProfile: UserServiceProfile) -> Promise<Response> -
Declaration
Swift
public func resetUserToken() -
Declaration
Swift
public func getLocalUserData() -> UserServiceProfile? -
Declaration
Swift
public func initializeNewLocalUserProfile() -> Promise<Response>
UserServiceProfileManager Class Reference