Manos Chorianopoulos

update CampaignItemModel

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -648,6 +648,7 @@ public class swiftApi {
public var couponset: String?
public var type: String?
public var sorting: Int?
private var ccms: LoyaltyContextualOfferModel?
public init() {
self.index_url = ""
......@@ -669,6 +670,7 @@ public class swiftApi {
self.couponset = ""
self.type = ""
self.sorting = 0
self.ccms = nil
}
public init(dictionary: [String: Any]) {
......@@ -683,6 +685,7 @@ public class swiftApi {
self.loyaltyPackageId = ""
self.campaign_type = dictionary["campaign_type"] as? String? ?? ""
self.sorting = dictionary["sorting"] as? Int? ?? 0
self.ccms = nil
// let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""]
if let extra_fields = dictionary["extra_fields"] as? [String: Any] {
......@@ -854,6 +857,15 @@ public class swiftApi {
self.sorting = newValue
}
}
public var _ccms: LoyaltyContextualOfferModel? {
get { // getter
return self.ccms
}
set(newValue) { //setter
self.ccms = newValue
}
}
}
public class CampaignDataModel {
......