Manos Chorianopoulos

Add coupon_img key at CampaignItemModel

...@@ -1195,6 +1195,7 @@ public class swiftApi { ...@@ -1195,6 +1195,7 @@ public class swiftApi {
1195 private var end_date: String? 1195 private var end_date: String?
1196 private var filter: String? // supermarket - free - contest etc 1196 private var filter: String? // supermarket - free - contest etc
1197 private var show_expiration: Bool? 1197 private var show_expiration: Bool?
1198 + private var coupon_img: String?
1198 1199
1199 public init() { 1200 public init() {
1200 self.index_url = "" 1201 self.index_url = ""
...@@ -1227,6 +1228,7 @@ public class swiftApi { ...@@ -1227,6 +1228,7 @@ public class swiftApi {
1227 self.end_date = "" 1228 self.end_date = ""
1228 self.filter = "" 1229 self.filter = ""
1229 self.show_expiration = false 1230 self.show_expiration = false
1231 + self.coupon_img = ""
1230 } 1232 }
1231 1233
1232 public init(dictionary: [String: Any]) { 1234 public init(dictionary: [String: Any]) {
...@@ -1243,6 +1245,7 @@ public class swiftApi { ...@@ -1243,6 +1245,7 @@ public class swiftApi {
1243 self.sorting = dictionary["sorting"] as? Int? ?? 0 1245 self.sorting = dictionary["sorting"] as? Int? ?? 0
1244 self.ccms = nil 1246 self.ccms = nil
1245 self.coupon_availability = nil 1247 self.coupon_availability = nil
1248 + self.coupon_img = dictionary["coupon_img"] as? String? ?? ""
1246 1249
1247 let startDateString = dictionary["start_date"] as? String? ?? "" 1250 let startDateString = dictionary["start_date"] as? String? ?? ""
1248 // Example expirationString: "start_date" = "2022-06-29 00:00:00"; 1251 // Example expirationString: "start_date" = "2022-06-29 00:00:00";
...@@ -1568,6 +1571,15 @@ public class swiftApi { ...@@ -1568,6 +1571,15 @@ public class swiftApi {
1568 self.show_expiration = newValue 1571 self.show_expiration = newValue
1569 } 1572 }
1570 } 1573 }
1574 +
1575 + public var _coupon_img: String? {
1576 + get { // getter
1577 + return self.coupon_img
1578 + }
1579 + set(newValue) { //setter
1580 + self.coupon_img = newValue
1581 + }
1582 + }
1571 } 1583 }
1572 1584
1573 public class CampaignDataModel { 1585 public class CampaignDataModel {
......