Manos Chorianopoulos

Add banner_img, banner_title at CampaignItemModel

......@@ -903,6 +903,8 @@ public class swiftApi {
private var ccms: LoyaltyContextualOfferModel?
private var carousel: String?
private var category_title: String?
private var banner_img: String?
private var banner_title: String?
public init() {
self.index_url = ""
......@@ -927,6 +929,8 @@ public class swiftApi {
self.ccms = nil
self.carousel = "false"
self.category_title = ""
self.banner_img = ""
self.banner_title = ""
}
public init(dictionary: [String: Any]) {
......@@ -953,6 +957,8 @@ public class swiftApi {
self.type = extra_fields["type"] as? String? ?? ""
self.carousel = extra_fields["carousel"] as? String? ?? "false"
self.category_title = extra_fields["category_title"] as? String ?? ""
self.banner_img = extra_fields["Banner_img"] as? String ?? ""
self.banner_title = extra_fields["Banner_title"] as? String ?? ""
} else {
self.subcategory = ""
self.loyaltyCampaignId = ""
......@@ -962,6 +968,8 @@ public class swiftApi {
self.type = ""
self.carousel = "false"
self.category_title = ""
self.banner_img = ""
self.banner_title = ""
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
......@@ -1162,6 +1170,24 @@ public class swiftApi {
self.category_title = newValue
}
}
public var _banner_img: String? {
get { // getter
return self.banner_img
}
set(newValue) { //setter
self.banner_img = newValue
}
}
public var _banner_title: String? {
get { // getter
return self.banner_title
}
set(newValue) { //setter
self.banner_title = newValue
}
}
}
public class CampaignDataModel {
......