Manos Chorianopoulos

add LoyaltyContextualOfferModel

No preview for this file type
......@@ -455,6 +455,76 @@ public class swiftApi {
public func getCampaigns() -> Array<CampaignItemModel> {
return CampaignDataModel().getData
}
public class LoyaltyContextualOfferModel {
private var sessionId: String
private var eligibleAssets: Array<String>
private var id: String
private var businessAdditionalId: String
private var treatmentCode: String
public init(sessionId: String?, eligibleAssets: Array<String>?, id: String?, businessAdditionalId: String?, treatmentCode: String?) {
self.sessionId = sessionId ?? ""
self.eligibleAssets = eligibleAssets ?? []
self.id = id ?? ""
self.businessAdditionalId = businessAdditionalId ?? ""
self.treatmentCode = treatmentCode ?? ""
}
public init() {
self.sessionId = ""
self.eligibleAssets = []
self.id = ""
self.businessAdditionalId = ""
self.treatmentCode = ""
}
public var _sessionId: String {
get { // getter
return self.sessionId
}
set(newValue) { //setter
self.sessionId = newValue
}
}
public var _eligibleAssets: Array<String> {
get { // getter
return self.eligibleAssets
}
set(newValue) { //setter
self.eligibleAssets = newValue
}
}
public var _id: String {
get { // getter
return self.id
}
set(newValue) { //setter
self.id = newValue
}
}
public var _businessAdditionalId: String {
get { // getter
return self.businessAdditionalId
}
set(newValue) { //setter
self.businessAdditionalId = newValue
}
}
public var _treatmentCode: String {
get { // getter
return self.treatmentCode
}
set(newValue) { //setter
self.treatmentCode = newValue
}
}
}
// public func openCoupon(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
// return UIHostingController(rootView: CouponView(parentView: parent, coupon: coupon))
......