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
1b5065bd
Commit
1b5065bd
authored
Jul 14, 2016
by
David Muzi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit of interface for product tags requests
parent
7afb129b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
BUYClient+Storefront.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.h
+43
-0
No files found.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.h
View file @
1b5065bd
...
...
@@ -119,6 +119,16 @@ typedef void (^BUYDataCollectionsListBlock)(NSArray<BUYCollection *> * _Nullable
*/
typedef
void
(
^
BUYDataProductListBlock
)(
NSArray
<
BUYProduct
*>
*
_Nullable
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
_Nullable
error
);
/**
* Return block containing a list of tags
*
* @param tags An array of tag titles
* @param page Index of the page requested
* @param reachedEnd Boolean indicating whether additional pages exist
* @param error An optional NSError
*/
typedef
void
(
^
BUYDataTagsListBlock
)(
NSArray
<
NSString
*>
*
_Nullable
tags
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
_Nullable
error
);
@interface
BUYClient
(
Storefront
)
/**
...
...
@@ -171,6 +181,39 @@ typedef void (^BUYDataProductListBlock)(NSArray<BUYProduct *> * _Nullable produc
-
(
NSOperation
*
)
getProductsByIds
:(
NSArray
<
NSString
*>
*
)
productIds
completion
:(
BUYDataProductsBlock
)
block
;
/**
* Gets the list of tags for all products
*
* @param page Page to request. Pages start at 1.
* @param block (^BUYDataTagsListBlock)(NSArray <NSString *> * _Nullable tags, NSUInteger page, BOOL reachedEnd, NSError * _Nullable error)
*
* @return The associated NSOperation
*/
-
(
NSOperation
*
)
getProductTagsPage
:(
NSUInteger
)
page
completion
:(
BUYDataTagsListBlock
)
block
;
/**
* Get the set of products that contain the tags provided
*
* @param page Page to request. Pages start at 1.
* @param tags an array of tags which each product must contain
* @param block (^BUYDataProductListBlock)(NSArray<BUYProduct *> * _Nullable products, NSUInteger page, BOOL reachedEnd, NSError * _Nullable error)
*
* @return The associated NSOperation
*/
-
(
NSOperation
*
)
getProductsPage
:(
NSUInteger
)
page
withTags
:(
NSArray
<
NSString
*>
*
)
tags
completion
:(
BUYDataProductListBlock
)
block
;
/**
* Get the set of products that contain the tags provided within the given collection
*
* @param page Page to request. Pages start at 1.
* @param tags an array of tags which each product must contain
* @param collectionId The `collectionId` found in the BUYCollection object to fetch the products from
* @param block (^BUYDataProductListBlock)(NSArray<BUYProduct *> * _Nullable products, NSUInteger page, BOOL reachedEnd, NSError * _Nullable error)
*
* @return The associated NSOperation
*/
-
(
NSOperation
*
)
getProductsPage
:(
NSUInteger
)
page
withTags
:(
NSArray
<
NSString
*>
*
)
tags
inCollection
:(
nullable
NSNumber
*
)
collectionId
completion
:(
BUYDataProductListBlock
)
block
;
/**
* Fetches collections based off page
*
* @param page Index of the page requested
...
...
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