WrappingPaperManager
@interface WrappingPaperManager : NSObject <VOWrappingPaperManagerProtocol>
WrappingPaperManager
is the default implementation of VOWrappingPaperManagerProtocol
.
It is responsible for requesting and parsing WrappingPaperCategory
and WrappingPaper
s from the VouchrServer.
-
A list of
WrappingPaperCategory
s that have been saved from a previous request to the Vouchr Server.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSArray<WrappingPaperCategory *> *wrappingPaperCategories;
Swift
var wrappingPaperCategories: [WrappingPaperCategory]? { get }
-
Default initializer for
WrappingPaperManager
.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
WrappingPaperManager
.