Showing
1 changed file
with
13 additions
and
0 deletions
... | @@ -1194,6 +1194,7 @@ public class swiftApi { | ... | @@ -1194,6 +1194,7 @@ public class swiftApi { |
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 | private var filter: String? // supermarket - free - contest etc |
1197 | + private var show_expiration: Bool? | ||
1197 | 1198 | ||
1198 | public init() { | 1199 | public init() { |
1199 | self.index_url = "" | 1200 | self.index_url = "" |
... | @@ -1225,6 +1226,7 @@ public class swiftApi { | ... | @@ -1225,6 +1226,7 @@ public class swiftApi { |
1225 | self.start_date = "" | 1226 | self.start_date = "" |
1226 | self.end_date = "" | 1227 | self.end_date = "" |
1227 | self.filter = "" | 1228 | self.filter = "" |
1229 | + self.show_expiration = false | ||
1228 | } | 1230 | } |
1229 | 1231 | ||
1230 | public init(dictionary: [String: Any]) { | 1232 | public init(dictionary: [String: Any]) { |
... | @@ -1280,6 +1282,7 @@ public class swiftApi { | ... | @@ -1280,6 +1282,7 @@ public class swiftApi { |
1280 | self.banner_title = extra_fields["Banner_title"] as? String ?? "" | 1282 | self.banner_title = extra_fields["Banner_title"] as? String ?? "" |
1281 | self.category_id = extra_fields["category_id"] as? String ?? "" | 1283 | self.category_id = extra_fields["category_id"] as? String ?? "" |
1282 | self.filter = extra_fields["filter"] as? String ?? "" | 1284 | self.filter = extra_fields["filter"] as? String ?? "" |
1285 | + self.show_expiration = extra_fields["show_expiration"] as? Bool? ?? false | ||
1283 | } else { | 1286 | } else { |
1284 | self.subcategory = "" | 1287 | self.subcategory = "" |
1285 | self.loyaltyCampaignId = "" | 1288 | self.loyaltyCampaignId = "" |
... | @@ -1292,6 +1295,7 @@ public class swiftApi { | ... | @@ -1292,6 +1295,7 @@ public class swiftApi { |
1292 | self.banner_img = "" | 1295 | self.banner_img = "" |
1293 | self.banner_title = "" | 1296 | self.banner_title = "" |
1294 | self.filter = "" | 1297 | self.filter = "" |
1298 | + self.show_expiration = false | ||
1295 | } | 1299 | } |
1296 | 1300 | ||
1297 | // let extra_fields = dictionary["extra_fields"] as AnyObject | 1301 | // let extra_fields = dictionary["extra_fields"] as AnyObject |
... | @@ -1555,6 +1559,15 @@ public class swiftApi { | ... | @@ -1555,6 +1559,15 @@ public class swiftApi { |
1555 | self.filter = newValue | 1559 | self.filter = newValue |
1556 | } | 1560 | } |
1557 | } | 1561 | } |
1562 | + | ||
1563 | + public var _show_expiration: Bool? { | ||
1564 | + get { // getter | ||
1565 | + return self.show_expiration | ||
1566 | + } | ||
1567 | + set(newValue) { //setter | ||
1568 | + self.show_expiration = newValue | ||
1569 | + } | ||
1570 | + } | ||
1558 | } | 1571 | } |
1559 | 1572 | ||
1560 | public class CampaignDataModel { | 1573 | public class CampaignDataModel { | ... | ... |
-
Please register or login to post a comment