Manos Chorianopoulos

Add unified_coupon_activated event to CampaignVC

......@@ -569,6 +569,37 @@ var timer2: DispatchSourceTimer?
firebaseEvent.setParameter = ("successful", successful)
SwiftEventBus.post("firebase", sender: firebaseEvent)
} else if (eventArray[1] == "unified_coupon_activated") {
SwiftEventBus.post("unified_coupon_activated")
var name: String = ""
if (eventArray.count > 2) {
name = String(eventArray[2])
} else {
name = ""
}
var type: String = ""
if (eventArray.count > 3) {
type = String(eventArray[3])
} else {
type = ""
}
var successful: String = ""
if (eventArray.count > 4) {
successful = String(eventArray[4])
} else {
successful = ""
}
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "unified_coupon_activated"
firebaseEvent.setParameter = ("name", name)
firebaseEvent.setParameter = ("type", type)
firebaseEvent.setParameter = ("successful", successful)
SwiftEventBus.post("firebase", sender: firebaseEvent)
} else if (eventArray[1] == "time_spent_on_loyalty_sdk") {
var name: String = ""
if (eventArray.count > 2) {
......