Manos Chorianopoulos

Added show_expiration key at CampaignItemModel

......@@ -1194,6 +1194,7 @@ public class swiftApi {
private var start_date: String?
private var end_date: String?
private var filter: String? // supermarket - free - contest etc
private var show_expiration: Bool?
public init() {
self.index_url = ""
......@@ -1225,6 +1226,7 @@ public class swiftApi {
self.start_date = ""
self.end_date = ""
self.filter = ""
self.show_expiration = false
}
public init(dictionary: [String: Any]) {
......@@ -1280,6 +1282,7 @@ public class swiftApi {
self.banner_title = extra_fields["Banner_title"] as? String ?? ""
self.category_id = extra_fields["category_id"] as? String ?? ""
self.filter = extra_fields["filter"] as? String ?? ""
self.show_expiration = extra_fields["show_expiration"] as? Bool? ?? false
} else {
self.subcategory = ""
self.loyaltyCampaignId = ""
......@@ -1292,6 +1295,7 @@ public class swiftApi {
self.banner_img = ""
self.banner_title = ""
self.filter = ""
self.show_expiration = false
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
......@@ -1555,6 +1559,15 @@ public class swiftApi {
self.filter = newValue
}
}
public var _show_expiration: Bool? {
get { // getter
return self.show_expiration
}
set(newValue) { //setter
self.show_expiration = newValue
}
}
}
public class CampaignDataModel {
......