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
0dff9eba
Commit
0dff9eba
authored
Oct 06, 2015
by
Rune Madsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from Shopify/runmad.7-add-product-tags
Product tags
parents
7999156b
bdcaf115
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
BUYProduct.h
Mobile Buy SDK/Mobile Buy SDK/Models/BUYProduct.h
+6
-0
BUYProduct.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYProduct.m
+3
-0
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/BUYProduct.h
View file @
0dff9eba
...
...
@@ -89,6 +89,12 @@
@property
(
nonatomic
,
readonly
,
assign
)
BOOL
available
;
/**
* A categorization that a product can be tagged with, commonly used for filtering and searching.
* Each tag has a character limit of 255.
*/
@property
(
nonatomic
,
readonly
,
copy
)
NSSet
*
tags
;
/**
* The product is published on the current sales channel
*/
@property
(
nonatomic
,
readonly
,
assign
)
BOOL
published
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYProduct.m
View file @
0dff9eba
...
...
@@ -53,6 +53,9 @@
_createdAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"created_at"
]];
_updatedAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"updated_at"
]];
_publishedAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"published_at"
]];
NSArray
*
tagsArray
=
[
dictionary
[
@"tags"
]
componentsSeparatedByString
:
@", "
];
NSSet
*
tagsSet
=
[
NSSet
setWithArray
:
tagsArray
];
_tags
=
[
tagsSet
copy
];
}
@end
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