VoucherManager

@interface VoucherManager : NSObject <VOVoucherManagerProtocol>

Default implemenation of the VOVoucherManagerProtocol. VoucherManager is responsible for managing anything related to Vouchers.

  • RACSignal that signals anytime a Voucher is updated (saved to cache) with the updated Voucher. To receive notifications anytime a Voucher is updated, subscribe to this signal.

    Declaration

    Objective-C

    @property (readonly, nonatomic) RACSignal *_Nonnull voucherUpdatedSignal;

    Swift

    var voucherUpdatedSignal: RACSignal { get }
  • Default initializer for VoucherManager.

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithNetworkManager:(nonnull id<VONetworkManagerProtocol>)networkManager
              cacheManager:(nullable id<VOCacheProtocol>)cacheManager
        mediaUploadManager:
            (nonnull id<VOMediaUploadManagerProtocol>)mediaUploadManager
               userManager:(nonnull id<VOUserManagerProtocol>)userManager;

    Parameters

    networkManager

    - Used for any Voucher related network requests.

    cacheManager

    - Used to cache Vouchers. If no cacheManager is passed, no Vouchers will be cached.

    mediaUploadManager

    - Used to upload media files.

    userManager

    - Used to fetch user data.