Manos Chorianopoulos

modify CampaignItemModel v2

......@@ -435,6 +435,7 @@ public class swiftApi {
public let loyaltyCampaignId: String?
public let hasExtraFields: Bool?
public let ccms_offer: String?
public var loyaltyPackageId: String?
public init() {
self.index_url = ""
......@@ -449,6 +450,7 @@ public class swiftApi {
self.loyaltyCampaignId = ""
self.hasExtraFields = false
self.ccms_offer = "false"
self.loyaltyPackageId = ""
}
public init(dictionary: [String: Any]) {
......@@ -460,6 +462,7 @@ public class swiftApi {
self.session_uuid = dictionary["session_uuid"] as? String? ?? ""
self.is_new = dictionary["is_new"] as? Bool? ?? false
self.message = dictionary["message"] as? String? ?? ""
self.loyaltyPackageId = ""
// let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""]
let extra_fields = dictionary["extra_fields"] as AnyObject
......@@ -507,6 +510,15 @@ public class swiftApi {
self.title = newValue
}
}
public var _loyaltyPackageId: String? {
get { // getter
return self.loyaltyPackageId
}
set(newValue) { //setter
self.loyaltyPackageId = newValue
}
}
}
public class CampaignDataModel {
......