Showing
1 changed file
with
26 additions
and
0 deletions
| ... | @@ -903,6 +903,8 @@ public class swiftApi { | ... | @@ -903,6 +903,8 @@ public class swiftApi { |
| 903 | private var ccms: LoyaltyContextualOfferModel? | 903 | private var ccms: LoyaltyContextualOfferModel? |
| 904 | private var carousel: String? | 904 | private var carousel: String? |
| 905 | private var category_title: String? | 905 | private var category_title: String? |
| 906 | + private var banner_img: String? | ||
| 907 | + private var banner_title: String? | ||
| 906 | 908 | ||
| 907 | public init() { | 909 | public init() { |
| 908 | self.index_url = "" | 910 | self.index_url = "" |
| ... | @@ -927,6 +929,8 @@ public class swiftApi { | ... | @@ -927,6 +929,8 @@ public class swiftApi { |
| 927 | self.ccms = nil | 929 | self.ccms = nil |
| 928 | self.carousel = "false" | 930 | self.carousel = "false" |
| 929 | self.category_title = "" | 931 | self.category_title = "" |
| 932 | + self.banner_img = "" | ||
| 933 | + self.banner_title = "" | ||
| 930 | } | 934 | } |
| 931 | 935 | ||
| 932 | public init(dictionary: [String: Any]) { | 936 | public init(dictionary: [String: Any]) { |
| ... | @@ -953,6 +957,8 @@ public class swiftApi { | ... | @@ -953,6 +957,8 @@ public class swiftApi { |
| 953 | self.type = extra_fields["type"] as? String? ?? "" | 957 | self.type = extra_fields["type"] as? String? ?? "" |
| 954 | self.carousel = extra_fields["carousel"] as? String? ?? "false" | 958 | self.carousel = extra_fields["carousel"] as? String? ?? "false" |
| 955 | self.category_title = extra_fields["category_title"] as? String ?? "" | 959 | self.category_title = extra_fields["category_title"] as? String ?? "" |
| 960 | + self.banner_img = extra_fields["Banner_img"] as? String ?? "" | ||
| 961 | + self.banner_title = extra_fields["Banner_title"] as? String ?? "" | ||
| 956 | } else { | 962 | } else { |
| 957 | self.subcategory = "" | 963 | self.subcategory = "" |
| 958 | self.loyaltyCampaignId = "" | 964 | self.loyaltyCampaignId = "" |
| ... | @@ -962,6 +968,8 @@ public class swiftApi { | ... | @@ -962,6 +968,8 @@ public class swiftApi { |
| 962 | self.type = "" | 968 | self.type = "" |
| 963 | self.carousel = "false" | 969 | self.carousel = "false" |
| 964 | self.category_title = "" | 970 | self.category_title = "" |
| 971 | + self.banner_img = "" | ||
| 972 | + self.banner_title = "" | ||
| 965 | } | 973 | } |
| 966 | 974 | ||
| 967 | // let extra_fields = dictionary["extra_fields"] as AnyObject | 975 | // let extra_fields = dictionary["extra_fields"] as AnyObject |
| ... | @@ -1162,6 +1170,24 @@ public class swiftApi { | ... | @@ -1162,6 +1170,24 @@ public class swiftApi { |
| 1162 | self.category_title = newValue | 1170 | self.category_title = newValue |
| 1163 | } | 1171 | } |
| 1164 | } | 1172 | } |
| 1173 | + | ||
| 1174 | + public var _banner_img: String? { | ||
| 1175 | + get { // getter | ||
| 1176 | + return self.banner_img | ||
| 1177 | + } | ||
| 1178 | + set(newValue) { //setter | ||
| 1179 | + self.banner_img = newValue | ||
| 1180 | + } | ||
| 1181 | + } | ||
| 1182 | + | ||
| 1183 | + public var _banner_title: String? { | ||
| 1184 | + get { // getter | ||
| 1185 | + return self.banner_title | ||
| 1186 | + } | ||
| 1187 | + set(newValue) { //setter | ||
| 1188 | + self.banner_title = newValue | ||
| 1189 | + } | ||
| 1190 | + } | ||
| 1165 | } | 1191 | } |
| 1166 | 1192 | ||
| 1167 | public class CampaignDataModel { | 1193 | public class CampaignDataModel { | ... | ... |
-
Please register or login to post a comment