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
2b75bf0d
Commit
2b75bf0d
authored
May 05, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nullability annotation to improve interoperability with Swift.
parent
7254fd6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
BUYClient+Customers.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Customers.h
+8
-4
No files found.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Customers.h
View file @
2b75bf0d
...
...
@@ -25,6 +25,7 @@
//
#import "BUYClient.h"
NS_ASSUME_NONNULL_BEGIN
@class
BUYCustomer
;
@class
BUYOrder
;
...
...
@@ -36,7 +37,7 @@
* @param customer A BUYCustomer
* @param error An optional NSError
*/
typedef
void
(
^
BUYDataCustomerBlock
)(
BUYCustomer
*
customer
,
NSError
*
error
);
typedef
void
(
^
BUYDataCustomerBlock
)(
BUYCustomer
*
_Nullable
customer
,
NSError
*
_Nullable
error
);
/**
* Return block containing a customer auth token
...
...
@@ -45,7 +46,7 @@ typedef void (^BUYDataCustomerBlock)(BUYCustomer *customer, NSError *error);
* @param token An authentication token to retrieve the customer later. Store this token securely on the device.
* @param error An optional NSError
*/
typedef
void
(
^
BUYDataCustomerTokenBlock
)(
BUYCustomer
*
customer
,
NSString
*
token
,
NSError
*
error
);
typedef
void
(
^
BUYDataCustomerTokenBlock
)(
BUYCustomer
*
_Nullable
customer
,
NSString
*
_Nullable
token
,
NSError
*
_Nullable
error
);
/**
* Return block containing a customer auth token
...
...
@@ -53,7 +54,7 @@ typedef void (^BUYDataCustomerTokenBlock)(BUYCustomer *customer, NSString *token
* @param token An authentication token to retrieve the customer later. Store this token securely on the device.
* @param error An optional NSError
*/
typedef
void
(
^
BUYDataTokenBlock
)(
NSString
*
token
,
NSError
*
error
);
typedef
void
(
^
BUYDataTokenBlock
)(
NSString
*
_Nullable
token
,
NSError
*
_Nullable
error
);
/**
* Return block containing an array of BUYOrders
...
...
@@ -61,7 +62,7 @@ typedef void (^BUYDataTokenBlock)(NSString *token, NSError *error);
* @param orders An array of BUYOrders
* @param error An optional NSError
*/
typedef
void
(
^
BUYDataOrdersBlock
)(
NSArray
<
BUYOrder
*>
*
orders
,
NSError
*
error
);
typedef
void
(
^
BUYDataOrdersBlock
)(
NSArray
<
BUYOrder
*>
*
_Nullable
orders
,
NSError
*
_Nullable
error
);
@interface
BUYClient
(
Customers
)
...
...
@@ -163,3 +164,5 @@ typedef void (^BUYDataOrdersBlock)(NSArray <BUYOrder*> *orders, NSError *error);
-
(
NSURLSessionDataTask
*
)
getOrdersForCustomerWithCallback
:(
BUYDataOrdersBlock
)
block
;
@end
NS_ASSUME_NONNULL_END
\ No newline at end of file
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