Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
243cc5cf
Commit
243cc5cf
authored
Jun 08, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename aggregate initializer. Convert strong -> weak queue reference.
parent
6a53263e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
BUYAggregateOperation.h
...Buy SDK/Mobile Buy SDK/Operations/BUYAggregateOperation.h
+2
-2
BUYAggregateOperation.m
...Buy SDK/Mobile Buy SDK/Operations/BUYAggregateOperation.m
+4
-4
BUYCheckoutOperation.m
... Buy SDK/Mobile Buy SDK/Operations/BUYCheckoutOperation.m
+1
-1
BUYStatusOperation.m
...le Buy SDK/Mobile Buy SDK/Operations/BUYStatusOperation.m
+1
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK/Operations/BUYAggregateOperation.h
View file @
243cc5cf
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
@property
(
strong
,
atomic
)
NSArray
<
NSOperation
*>
*
operations
;
@property
(
strong
,
atomic
)
NSArray
<
NSOperation
*>
*
operations
;
+
(
instancetype
)
operationWith
Queue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
;
+
(
instancetype
)
aggregateOperationWithRequest
Queue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
;
-
(
instancetype
)
initWithQueue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
;
-
(
instancetype
)
initWith
Request
Queue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
;
-
(
void
)
finishWithObject
:(
id
)
object
;
-
(
void
)
finishWithObject
:(
id
)
object
;
-
(
void
)
finishWithError
:(
NSError
*
)
error
;
-
(
void
)
finishWithError
:(
NSError
*
)
error
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Operations/BUYAggregateOperation.m
View file @
243cc5cf
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
@interface
BUYAggregateOperation
()
@interface
BUYAggregateOperation
()
@property
(
strong
,
nonatomic
)
NSOperationQueue
*
queue
;
@property
(
weak
,
nonatomic
)
NSOperationQueue
*
queue
;
@end
@end
...
@@ -36,12 +36,12 @@
...
@@ -36,12 +36,12 @@
#pragma mark - Init -
#pragma mark - Init -
+
(
instancetype
)
operationWith
Queue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
+
(
instancetype
)
aggregateOperationWithRequest
Queue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
{
{
return
[[[
self
class
]
alloc
]
initWithQueue
:
queue
operations
:
operations
];
return
[[[
self
class
]
alloc
]
initWith
Request
Queue
:
queue
operations
:
operations
];
}
}
-
(
instancetype
)
initWithQueue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
-
(
instancetype
)
initWith
Request
Queue
:(
NSOperationQueue
*
)
queue
operations
:(
NSArray
<
NSOperation
*>
*
)
operations
{
{
self
=
[
super
init
];
self
=
[
super
init
];
if
(
self
)
{
if
(
self
)
{
...
...
Mobile Buy SDK/Mobile Buy SDK/Operations/BUYCheckoutOperation.m
View file @
243cc5cf
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
-
(
instancetype
)
initWithClient
:(
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
{
{
self
=
[
super
initWithQueue
:
client
.
requestQueue
operations
:
nil
];
self
=
[
super
initWith
Request
Queue
:
client
.
requestQueue
operations
:
nil
];
if
(
self
)
{
if
(
self
)
{
_client
=
client
;
_client
=
client
;
_token
=
token
;
_token
=
token
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Operations/BUYStatusOperation.m
View file @
243cc5cf
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
-
(
instancetype
)
initWithClient
:(
BUYClient
*
)
client
checkoutToken
:(
NSString
*
)
checkoutToken
completion
:(
BUYCheckoutOperationCompletion
)
completion
-
(
instancetype
)
initWithClient
:(
BUYClient
*
)
client
checkoutToken
:(
NSString
*
)
checkoutToken
completion
:(
BUYCheckoutOperationCompletion
)
completion
{
{
self
=
[
super
initWithQueue
:
client
.
requestQueue
operations
:
nil
];
self
=
[
super
initWith
Request
Queue
:
client
.
requestQueue
operations
:
nil
];
if
(
self
)
{
if
(
self
)
{
_client
=
client
;
_client
=
client
;
_completion
=
completion
;
_completion
=
completion
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment