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
d40e94ba
Commit
d40e94ba
authored
Oct 06, 2015
by
Rune Madsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding product tags to BUYProduct
parent
4d5f72ed
Show 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 @
d40e94ba
...
@@ -89,6 +89,12 @@
...
@@ -89,6 +89,12 @@
@property
(
nonatomic
,
readonly
,
assign
)
BOOL
available
;
@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
* The product is published on the current sales channel
*/
*/
@property
(
nonatomic
,
readonly
,
assign
)
BOOL
published
;
@property
(
nonatomic
,
readonly
,
assign
)
BOOL
published
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYProduct.m
View file @
d40e94ba
...
@@ -53,6 +53,9 @@
...
@@ -53,6 +53,9 @@
_createdAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"created_at"
]];
_createdAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"created_at"
]];
_updatedAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"updated_at"
]];
_updatedAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"updated_at"
]];
_publishedAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"published_at"
]];
_publishedAtDate
=
[
dateFormatter
dateFromString
:
dictionary
[
@"published_at"
]];
NSArray
*
tagsArray
=
[[
dictionary
[
@"tags"
]
stringByReplacingOccurrencesOfString
:
@", "
withString
:
@","
]
componentsSeparatedByString
:
@","
];
NSSet
*
tagsSet
=
[
NSSet
setWithArray
:
tagsArray
];
_tags
=
[
tagsSet
copy
];
}
}
@end
@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