Manos Chorianopoulos

update CampaignItemModel

...@@ -804,6 +804,7 @@ public class swiftApi { ...@@ -804,6 +804,7 @@ public class swiftApi {
804 public var sorting: Int? 804 public var sorting: Int?
805 private var ccms: LoyaltyContextualOfferModel? 805 private var ccms: LoyaltyContextualOfferModel?
806 private var carousel: String? 806 private var carousel: String?
807 + private var category_title: String?
807 808
808 public init() { 809 public init() {
809 self.index_url = "" 810 self.index_url = ""
...@@ -827,6 +828,7 @@ public class swiftApi { ...@@ -827,6 +828,7 @@ public class swiftApi {
827 self.sorting = 0 828 self.sorting = 0
828 self.ccms = nil 829 self.ccms = nil
829 self.carousel = "false" 830 self.carousel = "false"
831 + self.category_title = ""
830 } 832 }
831 833
832 public init(dictionary: [String: Any]) { 834 public init(dictionary: [String: Any]) {
...@@ -852,6 +854,7 @@ public class swiftApi { ...@@ -852,6 +854,7 @@ public class swiftApi {
852 self.badge = extra_fields["badge"] as? String? ?? "" 854 self.badge = extra_fields["badge"] as? String? ?? ""
853 self.type = extra_fields["type"] as? String? ?? "" 855 self.type = extra_fields["type"] as? String? ?? ""
854 self.carousel = extra_fields["carousel"] as? String? ?? "false" 856 self.carousel = extra_fields["carousel"] as? String? ?? "false"
857 + self.category_title = extra_fields["category_title"] as? String ?? ""
855 } else { 858 } else {
856 self.subcategory = "" 859 self.subcategory = ""
857 self.loyaltyCampaignId = "" 860 self.loyaltyCampaignId = ""
...@@ -860,6 +863,7 @@ public class swiftApi { ...@@ -860,6 +863,7 @@ public class swiftApi {
860 self.badge = "" 863 self.badge = ""
861 self.type = "" 864 self.type = ""
862 self.carousel = "false" 865 self.carousel = "false"
866 + self.category_title = ""
863 } 867 }
864 868
865 // let extra_fields = dictionary["extra_fields"] as AnyObject 869 // let extra_fields = dictionary["extra_fields"] as AnyObject
...@@ -1051,6 +1055,15 @@ public class swiftApi { ...@@ -1051,6 +1055,15 @@ public class swiftApi {
1051 self.carousel = newValue 1055 self.carousel = newValue
1052 } 1056 }
1053 } 1057 }
1058 +
1059 + public var _category_title: String? {
1060 + get { // getter
1061 + return self.category_title
1062 + }
1063 + set(newValue) { //setter
1064 + self.category_title = newValue
1065 + }
1066 + }
1054 } 1067 }
1055 1068
1056 public class CampaignDataModel { 1069 public class CampaignDataModel {
......