Commit 417aa701 by Dima Bart

Rename BUYAggregateOperation -> BUYGroupOperation

parent 243cc5cf
......@@ -24,7 +24,7 @@
// THE SOFTWARE.
//
#import <Buy/BUYAggregateOperation.h>
#import <Buy/BUYGroupOperation.h>
#import <Buy/BUYStatusOperation.h>
NS_ASSUME_NONNULL_BEGIN
......@@ -33,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol BUYPaymentToken;
@interface BUYCheckoutOperation : BUYAggregateOperation
@interface BUYCheckoutOperation : BUYGroupOperation
+ (instancetype)operationWithClient:(BUYClient *)client checkoutToken:(NSString *)checkoutToken token:(id<BUYPaymentToken>)token completion:(BUYCheckoutOperationCompletion)completion;
- (instancetype)initWithClient:(BUYClient *)client checkoutToken:(NSString *)checkoutToken token:(id<BUYPaymentToken>)token completion:(BUYCheckoutOperationCompletion)completion;
......
//
// BUYAggregateOperation.h
// BUYGroupOperation.h
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -26,11 +26,11 @@
#import "BUYOperation.h"
@interface BUYAggregateOperation : BUYOperation
@interface BUYGroupOperation : BUYOperation
@property (strong, atomic) NSArray<NSOperation *> *operations;
+ (instancetype)aggregateOperationWithRequestQueue:(NSOperationQueue *)queue operations:(NSArray<NSOperation *> *)operations;
+ (instancetype)groupOperationWithRequestQueue:(NSOperationQueue *)queue operations:(NSArray<NSOperation *> *)operations;
- (instancetype)initWithRequestQueue:(NSOperationQueue *)queue operations:(NSArray<NSOperation *> *)operations;
- (void)finishWithObject:(id)object;
......
//
// BUYAggregateOperation.m
// BUYGroupOperation.m
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -24,19 +24,19 @@
// THE SOFTWARE.
//
#import "BUYAggregateOperation.h"
#import "BUYGroupOperation.h"
@interface BUYAggregateOperation ()
@interface BUYGroupOperation ()
@property (weak, nonatomic) NSOperationQueue *queue;
@end
@implementation BUYAggregateOperation
@implementation BUYGroupOperation
#pragma mark - Init -
+ (instancetype)aggregateOperationWithRequestQueue:(NSOperationQueue *)queue operations:(NSArray<NSOperation *> *)operations
+ (instancetype)groupOperationWithRequestQueue:(NSOperationQueue *)queue operations:(NSArray<NSOperation *> *)operations
{
return [[[self class] alloc] initWithRequestQueue:queue operations:operations];
}
......
......@@ -24,7 +24,7 @@
// THE SOFTWARE.
//
#import "BUYAggregateOperation.h"
#import "BUYGroupOperation.h"
NS_ASSUME_NONNULL_BEGIN
@class BUYCheckout;
......@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
typedef void (^BUYCheckoutOperationCompletion)(BUYCheckout * _Nullable checkout, NSError * _Nullable error);
@interface BUYStatusOperation : BUYAggregateOperation
@interface BUYStatusOperation : BUYGroupOperation
+ (instancetype)operationWithClient:(BUYClient *)client checkoutToken:(NSString *)checkoutToken completion:(BUYCheckoutOperationCompletion)completion;
- (instancetype)initWithClient:(BUYClient *)client checkoutToken:(NSString *)checkoutToken completion:(BUYCheckoutOperationCompletion)completion;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment