VOWrappingPaperManager
@interface VOWrappingPaperManager : NSObject <VOWrappingPaperManagerProtocol>
VOWrappingPaperManager
is the default implementation of VOWrappingPaperManagerProtocol
.
It is responsible for requesting and parsing VOWrappingPaperCategory
and WrappingPaper
s from the VouchrServer.
-
A list of
VOWrappingPaperCategory
s that have been saved from a previous request to the Vouchr Server.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSArray<VOWrappingPaperCategory *> *wrappingPaperCategories;
Swift
var wrappingPaperCategories: [VOWrappingPaperCategory]? { get }
-
Default initializer for
VOWrappingPaperManager
.Declaration
Objective-C
- (nonnull instancetype) initWithNetworkManager:(nonnull id<VONetworkManagerProtocol>)networkManager cacheManager:(nullable id<VOCacheProtocol>)cacheManager;
Parameters
networkManager
- The networkManager used for requests to the Vouchr Server.
cacheManager
- The cache manager will cache wrapping paper and categories.
Return Value
Instance of
VOWrappingPaperManager
.