2017-11-09 18:43:37 -08:00
|
|
|
//
|
|
|
|
// PremiumViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 11/9/17.
|
|
|
|
// Copyright © 2017 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <StoreKit/StoreKit.h>
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
2017-11-10 17:57:50 -08:00
|
|
|
|
|
|
|
@class SAConfettiView;
|
2017-11-09 18:43:37 -08:00
|
|
|
|
|
|
|
@interface PremiumViewController : BaseViewController <UITableViewDelegate, UITableViewDataSource, SKProductsRequestDelegate, SKPaymentTransactionObserver> {
|
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
NSArray<SKProduct *> *products;
|
|
|
|
|
|
|
|
NSArray *reasons;
|
2017-11-10 17:37:31 -08:00
|
|
|
SKProductsRequest *request;
|
2017-11-15 10:47:57 -08:00
|
|
|
|
2017-11-09 18:43:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic) IBOutlet UIActivityIndicatorView *spinner;
|
|
|
|
@property (nonatomic) IBOutlet UITableView *productsTable;
|
|
|
|
@property (nonatomic) IBOutlet UITableView *reasonsTable;
|
|
|
|
@property (nonatomic) IBOutlet UINavigationBar *navigationBar;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *doneButton;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *restoreButton;
|
2017-11-10 17:37:31 -08:00
|
|
|
@property (nonatomic) IBOutlet UIView *freeView;
|
|
|
|
@property (nonatomic) IBOutlet UIView *premiumView;
|
|
|
|
@property (nonatomic) IBOutlet SAConfettiView *confettiView;
|
2017-11-14 21:46:21 -08:00
|
|
|
@property (nonatomic) IBOutlet NSLayoutConstraint *productsHeight;
|
2017-11-15 10:47:57 -08:00
|
|
|
@property (nonatomic) IBOutlet UILabel *labelTitle;
|
|
|
|
@property (nonatomic) IBOutlet UILabel *labelSubtitle;
|
2017-11-09 18:43:37 -08:00
|
|
|
|
|
|
|
|
|
|
|
- (IBAction)closeDialog:(id)sender;
|
|
|
|
- (IBAction)restorePurchase:(id)sender;
|
|
|
|
|
|
|
|
@end
|