Manos Chorianopoulos

add dynatraceEvents part 2

......@@ -674,6 +674,53 @@ var timer2: DispatchSourceTimer?
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController
self.navigationController?.pushViewController(vc, animated: true)
} else if (eventArray[1] == "cancel_unified_success") {
// event:cancel_unified_success
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
SwiftEventBus.post("refresh_unified_coupons")
} else if (eventArray[1] == "cancel_unified_failed") {
// event:cancel_unified_failed
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
} else if (eventArray[1] == "create_unified_success") {
// event:create_unified_success
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_success_create_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
SwiftEventBus.post("refresh_unified_coupons")
} else if (eventArray[1] == "create_unified_failed") {
// event:create_unified_failed
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_create_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
} else if (eventArray[1] == "get_unified_success") {
// event:get_unified_success
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
} else if (eventArray[1] == "get_unified_failed") {
// event:get_unified_failed
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
}
}
......
......@@ -7406,13 +7406,13 @@ public class swiftApi {
DispatchQueue.main.async {
if (tempResponse.getStatus == 1) {
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_success_cancel_unified_coupon"
dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
} else {
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_cancel_unified_coupon"
dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
......@@ -7420,7 +7420,7 @@ public class swiftApi {
}
} else {
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_cancel_unified_coupon"
dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
}
......@@ -7429,7 +7429,7 @@ public class swiftApi {
} else {
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_cancel_unified_coupon"
dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
......@@ -7444,7 +7444,7 @@ public class swiftApi {
print("====================")
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
dynatraceEvent._eventName = "custom_error_cancel_unified_coupon"
dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty"
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
......