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
62319c1e
Commit
62319c1e
authored
May 30, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename from getter to property name: isCancelled -> cancelled
parent
91e65606
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
BUYOperationTests.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYOperationTests.m
+4
-4
BUYCheckoutOperation.m
... Buy SDK/Mobile Buy SDK/Operations/BUYCheckoutOperation.m
+3
-3
BUYRequestOperation.m
...e Buy SDK/Mobile Buy SDK/Operations/BUYRequestOperation.m
+4
-4
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYOperationTests.m
View file @
62319c1e
...
@@ -49,11 +49,11 @@
...
@@ -49,11 +49,11 @@
XCTAssertTrue
(
operation
.
isReady
);
XCTAssertTrue
(
operation
.
isReady
);
[
operation
start
];
[
operation
start
];
XCTAssertTrue
(
operation
.
isE
xecuting
);
XCTAssertTrue
(
operation
.
e
xecuting
);
[
operation
finishExecution
];
[
operation
finishExecution
];
XCTAssertTrue
(
operation
.
isFinished
);
XCTAssertTrue
(
operation
.
isFinished
);
XCTAssertFalse
(
operation
.
isC
ancelled
);
XCTAssertFalse
(
operation
.
c
ancelled
);
}
}
-
(
void
)
testCancelledExecutionFlow
-
(
void
)
testCancelledExecutionFlow
...
@@ -62,10 +62,10 @@
...
@@ -62,10 +62,10 @@
XCTAssertTrue
(
operation
.
isReady
);
XCTAssertTrue
(
operation
.
isReady
);
[
operation
start
];
[
operation
start
];
XCTAssertTrue
(
operation
.
isE
xecuting
);
XCTAssertTrue
(
operation
.
e
xecuting
);
[
operation
cancel
];
[
operation
cancel
];
XCTAssertTrue
(
operation
.
isC
ancelled
);
XCTAssertTrue
(
operation
.
c
ancelled
);
XCTAssertFalse
(
operation
.
isFinished
);
XCTAssertFalse
(
operation
.
isFinished
);
[
operation
cancelExecution
];
[
operation
cancelExecution
];
...
...
Mobile Buy SDK/Mobile Buy SDK/Operations/BUYCheckoutOperation.m
View file @
62319c1e
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
-
(
void
)
finishWithCheckout
:(
BUYCheckout
*
)
checkout
-
(
void
)
finishWithCheckout
:(
BUYCheckout
*
)
checkout
{
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
;
return
;
}
}
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
-
(
void
)
finishWithError
:(
NSError
*
)
error
-
(
void
)
finishWithError
:(
NSError
*
)
error
{
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
;
return
;
}
}
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
-
(
void
)
startExecution
-
(
void
)
startExecution
{
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
;
return
;
}
}
...
...
Mobile Buy SDK/Mobile Buy SDK/Operations/BUYRequestOperation.m
View file @
62319c1e
...
@@ -97,7 +97,7 @@ typedef void (^BUYRequestJSONCompletion)(NSDictionary *json, NSHTTPURLResponse *
...
@@ -97,7 +97,7 @@ typedef void (^BUYRequestJSONCompletion)(NSDictionary *json, NSHTTPURLResponse *
-
(
void
)
startExecution
-
(
void
)
startExecution
{
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
;
return
;
}
}
...
@@ -126,13 +126,13 @@ typedef void (^BUYRequestJSONCompletion)(NSDictionary *json, NSHTTPURLResponse *
...
@@ -126,13 +126,13 @@ typedef void (^BUYRequestJSONCompletion)(NSDictionary *json, NSHTTPURLResponse *
-
(
NSURLSessionDataTask
*
)
requestUsingPollingIfNeeded
:
(
NSURLRequest
*
)
request
completion
:
(
BUYRequestJSONCompletion
)
completion
-
(
NSURLSessionDataTask
*
)
requestUsingPollingIfNeeded
:
(
NSURLRequest
*
)
request
completion
:
(
BUYRequestJSONCompletion
)
completion
{
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
nil
;
return
nil
;
}
}
return
[
self
request
:
request
completion
:
^
(
NSDictionary
*
json
,
NSHTTPURLResponse
*
response
,
NSError
*
error
)
{
return
[
self
request
:
request
completion
:
^
(
NSDictionary
*
json
,
NSHTTPURLResponse
*
response
,
NSError
*
error
)
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
;
return
;
}
}
...
@@ -145,7 +145,7 @@ typedef void (^BUYRequestJSONCompletion)(NSDictionary *json, NSHTTPURLResponse *
...
@@ -145,7 +145,7 @@ typedef void (^BUYRequestJSONCompletion)(NSDictionary *json, NSHTTPURLResponse *
if
(
self
.
pollingHandler
&&
self
.
pollingHandler
(
json
,
response
,
error
))
{
if
(
self
.
pollingHandler
&&
self
.
pollingHandler
(
json
,
response
,
error
))
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
self
.
pollingInterval
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
self
.
pollingInterval
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
if
(
self
.
isC
ancelled
)
{
if
(
self
.
c
ancelled
)
{
return
;
return
;
}
}
...
...
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