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
f8ef0de0
Commit
f8ef0de0
authored
May 18, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move BUYCollectionSort enum into storefront category file.
parent
38df8cfe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
39 deletions
+39
-39
BUYClient+Storefront.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.h
+38
-0
BUYClient.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.h
+0
-38
BUYCollection.h
... Buy SDK/Mobile Buy SDK/Models/Persistent/BUYCollection.h
+1
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Storefront.h
View file @
f8ef0de0
...
...
@@ -32,6 +32,44 @@ NS_ASSUME_NONNULL_BEGIN
@class
BUYProduct
;
/**
* The sort order for products in a collection
*/
typedef
NS_ENUM
(
NSUInteger
,
BUYCollectionSort
)
{
/**
* Sort products by best selling using the order set in the shop's admin
*/
BUYCollectionSortCollectionDefault
,
/**
* Sort products by best selling
*/
BUYCollectionSortBestSelling
,
/**
* Sort products by title, ascending
*/
BUYCollectionSortTitleAscending
,
/**
* Sort products by title, descending
*/
BUYCollectionSortTitleDescending
,
/**
* Sort products by price (first variant), ascending
*/
BUYCollectionSortPriceAscending
,
/**
* Sort products by price (first variant), descending
*/
BUYCollectionSortPriceDescending
,
/**
* Sort products by creation date, ascending
*/
BUYCollectionSortCreatedAscending
,
/**
* Sort products by creation date, descending
*/
BUYCollectionSortCreatedDescending
};
/**
* Return block containing a BUYShop and/or an NSError
*
* @param shop A BUYShop object
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.h
View file @
f8ef0de0
...
...
@@ -29,44 +29,6 @@
@class
BUYModelManager
;
/**
* The sort order for products in a collection
*/
typedef
NS_ENUM
(
NSUInteger
,
BUYCollectionSort
)
{
/**
* Sort products by best selling using the order set in the shop's admin
*/
BUYCollectionSortCollectionDefault
,
/**
* Sort products by best selling
*/
BUYCollectionSortBestSelling
,
/**
* Sort products by title, ascending
*/
BUYCollectionSortTitleAscending
,
/**
* Sort products by title, descending
*/
BUYCollectionSortTitleDescending
,
/**
* Sort products by price (first variant), ascending
*/
BUYCollectionSortPriceAscending
,
/**
* Sort products by price (first variant), descending
*/
BUYCollectionSortPriceDescending
,
/**
* Sort products by creation date, ascending
*/
BUYCollectionSortCreatedAscending
,
/**
* Sort products by creation date, descending
*/
BUYCollectionSortCreatedDescending
};
/**
* A BUYStatus is associated with the completion of an enqueued job on Shopify.
* BUYStatus is equal is HTTP status codes returned from the server
*/
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/BUYCollection.h
View file @
f8ef0de0
...
...
@@ -25,7 +25,7 @@
//
#import <Buy/_BUYCollection.h>
#import "BUYClient.h"
#import "BUYClient
+Storefront
.h"
@interface
BUYCollection
:
_BUYCollection
{}
...
...
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