Manos Chorianopoulos

update CampaignItemModel

......@@ -804,6 +804,7 @@ public class swiftApi {
public var sorting: Int?
private var ccms: LoyaltyContextualOfferModel?
private var carousel: String?
private var category_title: String?
public init() {
self.index_url = ""
......@@ -827,6 +828,7 @@ public class swiftApi {
self.sorting = 0
self.ccms = nil
self.carousel = "false"
self.category_title = ""
}
public init(dictionary: [String: Any]) {
......@@ -852,6 +854,7 @@ public class swiftApi {
self.badge = extra_fields["badge"] as? String? ?? ""
self.type = extra_fields["type"] as? String? ?? ""
self.carousel = extra_fields["carousel"] as? String? ?? "false"
self.category_title = extra_fields["category_title"] as? String ?? ""
} else {
self.subcategory = ""
self.loyaltyCampaignId = ""
......@@ -860,6 +863,7 @@ public class swiftApi {
self.badge = ""
self.type = ""
self.carousel = "false"
self.category_title = ""
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
......@@ -1051,6 +1055,15 @@ public class swiftApi {
self.carousel = newValue
}
}
public var _category_title: String? {
get { // getter
return self.category_title
}
set(newValue) { //setter
self.category_title = newValue
}
}
}
public class CampaignDataModel {
......