Manos Chorianopoulos

Add coupon_img key at CampaignItemModel

......@@ -1195,6 +1195,7 @@ public class swiftApi {
private var end_date: String?
private var filter: String? // supermarket - free - contest etc
private var show_expiration: Bool?
private var coupon_img: String?
public init() {
self.index_url = ""
......@@ -1227,6 +1228,7 @@ public class swiftApi {
self.end_date = ""
self.filter = ""
self.show_expiration = false
self.coupon_img = ""
}
public init(dictionary: [String: Any]) {
......@@ -1243,6 +1245,7 @@ public class swiftApi {
self.sorting = dictionary["sorting"] as? Int? ?? 0
self.ccms = nil
self.coupon_availability = nil
self.coupon_img = dictionary["coupon_img"] as? String? ?? ""
let startDateString = dictionary["start_date"] as? String? ?? ""
// Example expirationString: "start_date" = "2022-06-29 00:00:00";
......@@ -1568,6 +1571,15 @@ public class swiftApi {
self.show_expiration = newValue
}
}
public var _coupon_img: String? {
get { // getter
return self.coupon_img
}
set(newValue) { //setter
self.coupon_img = newValue
}
}
}
public class CampaignDataModel {
......