Showing
1 changed file
with
13 additions
and
0 deletions
... | @@ -1193,6 +1193,7 @@ public class swiftApi { | ... | @@ -1193,6 +1193,7 @@ public class swiftApi { |
1193 | private var category_id: String? | 1193 | private var category_id: String? |
1194 | private var start_date: String? | 1194 | private var start_date: String? |
1195 | private var end_date: String? | 1195 | private var end_date: String? |
1196 | + private var filter: String? // supermarket - free - contest etc | ||
1196 | 1197 | ||
1197 | public init() { | 1198 | public init() { |
1198 | self.index_url = "" | 1199 | self.index_url = "" |
... | @@ -1223,6 +1224,7 @@ public class swiftApi { | ... | @@ -1223,6 +1224,7 @@ public class swiftApi { |
1223 | self.category_id = "" | 1224 | self.category_id = "" |
1224 | self.start_date = "" | 1225 | self.start_date = "" |
1225 | self.end_date = "" | 1226 | self.end_date = "" |
1227 | + self.filter = "" | ||
1226 | } | 1228 | } |
1227 | 1229 | ||
1228 | public init(dictionary: [String: Any]) { | 1230 | public init(dictionary: [String: Any]) { |
... | @@ -1277,6 +1279,7 @@ public class swiftApi { | ... | @@ -1277,6 +1279,7 @@ public class swiftApi { |
1277 | self.banner_img = extra_fields["Banner_img"] as? String ?? "" | 1279 | self.banner_img = extra_fields["Banner_img"] as? String ?? "" |
1278 | self.banner_title = extra_fields["Banner_title"] as? String ?? "" | 1280 | self.banner_title = extra_fields["Banner_title"] as? String ?? "" |
1279 | self.category_id = extra_fields["category_id"] as? String ?? "" | 1281 | self.category_id = extra_fields["category_id"] as? String ?? "" |
1282 | + self.filter = extra_fields["filter"] as? String ?? "" | ||
1280 | } else { | 1283 | } else { |
1281 | self.subcategory = "" | 1284 | self.subcategory = "" |
1282 | self.loyaltyCampaignId = "" | 1285 | self.loyaltyCampaignId = "" |
... | @@ -1288,6 +1291,7 @@ public class swiftApi { | ... | @@ -1288,6 +1291,7 @@ public class swiftApi { |
1288 | self.category_title = "" | 1291 | self.category_title = "" |
1289 | self.banner_img = "" | 1292 | self.banner_img = "" |
1290 | self.banner_title = "" | 1293 | self.banner_title = "" |
1294 | + self.filter = "" | ||
1291 | } | 1295 | } |
1292 | 1296 | ||
1293 | // let extra_fields = dictionary["extra_fields"] as AnyObject | 1297 | // let extra_fields = dictionary["extra_fields"] as AnyObject |
... | @@ -1542,6 +1546,15 @@ public class swiftApi { | ... | @@ -1542,6 +1546,15 @@ public class swiftApi { |
1542 | self.end_date = newValue | 1546 | self.end_date = newValue |
1543 | } | 1547 | } |
1544 | } | 1548 | } |
1549 | + | ||
1550 | + public var _filter: String? { | ||
1551 | + get { // getter | ||
1552 | + return self.filter | ||
1553 | + } | ||
1554 | + set(newValue) { //setter | ||
1555 | + self.filter = newValue | ||
1556 | + } | ||
1557 | + } | ||
1545 | } | 1558 | } |
1546 | 1559 | ||
1547 | public class CampaignDataModel { | 1560 | public class CampaignDataModel { | ... | ... |
-
Please register or login to post a comment