SBBBridgeAPIManager Class Reference

Inherits from NSObject
Conforms to SBBBridgeAPIManagerProtocol
Declared in SBBBridgeAPIManager.h
SBBBridgeAPIManager.m

Overview

This is an abstract base class for SBBComponents that implement parts of the Bridge REST API.

+ instanceWithRegisteredDependencies

Return an SBBXxxManager component (where SBBXxxManager is a concrete subclass of SBBBridgeAPIManager) configured to use the currently-registered auth manager, network manager, and object manager.

+ (instancetype)instanceWithRegisteredDependencies

Return Value

An SBBXxxManager injected with the dependencies as currently registered.

Declared In

SBBBridgeAPIManager.h

+ managerWithAuthManager:networkManager:objectManager:

Return an SBBXxxManager component (where SBBXxxManager is a concrete subclass of SBBBridgeAPIManager) configured to use the specified auth manager, network manager, and object manager.

+ (instancetype)managerWithAuthManager:(id<SBBAuthManagerProtocol>)authManager networkManager:(id<SBBNetworkManagerProtocol>)networkManager objectManager:(id<SBBObjectManagerProtocol>)objectManager

Parameters

authManager

The auth manager to use for authentication. Must implement the SBBAuthManagerProtocol.

networkManager

The network manager to use for making REST API requests. Must implement the SBBNetworkManagerProtocol.

objectManager

The object manager to use for converting between JSON and client objects. Must implement the SBBObjectManagerProtocol.

Return Value

An SBBXxxManager injected with the specified dependencies.

Discussion

Use this method to build a custom configuration, e.g. for testing.

Declared In

SBBBridgeAPIManager.h