Showing
2 changed files
with
52 additions
and
5 deletions
... | @@ -674,6 +674,53 @@ var timer2: DispatchSourceTimer? | ... | @@ -674,6 +674,53 @@ var timer2: DispatchSourceTimer? |
674 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 674 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
675 | let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController | 675 | let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController |
676 | self.navigationController?.pushViewController(vc, animated: true) | 676 | self.navigationController?.pushViewController(vc, animated: true) |
677 | + | ||
678 | + } else if (eventArray[1] == "cancel_unified_success") { | ||
679 | + // event:cancel_unified_success | ||
680 | + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | ||
681 | + dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty" | ||
682 | + dynatraceEvent._parameters = nil | ||
683 | + SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | ||
684 | + | ||
685 | + SwiftEventBus.post("refresh_unified_coupons") | ||
686 | + | ||
687 | + } else if (eventArray[1] == "cancel_unified_failed") { | ||
688 | + // event:cancel_unified_failed | ||
689 | + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | ||
690 | + dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" | ||
691 | + dynatraceEvent._parameters = nil | ||
692 | + SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | ||
693 | + | ||
694 | + } else if (eventArray[1] == "create_unified_success") { | ||
695 | + // event:create_unified_success | ||
696 | + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | ||
697 | + dynatraceEvent._eventName = "custom_success_create_unified_loyalty" | ||
698 | + dynatraceEvent._parameters = nil | ||
699 | + SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | ||
700 | + | ||
701 | + SwiftEventBus.post("refresh_unified_coupons") | ||
702 | + | ||
703 | + } else if (eventArray[1] == "create_unified_failed") { | ||
704 | + // event:create_unified_failed | ||
705 | + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | ||
706 | + dynatraceEvent._eventName = "custom_error_create_unified_loyalty" | ||
707 | + dynatraceEvent._parameters = nil | ||
708 | + SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | ||
709 | + | ||
710 | + } else if (eventArray[1] == "get_unified_success") { | ||
711 | + // event:get_unified_success | ||
712 | + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | ||
713 | + dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty" | ||
714 | + dynatraceEvent._parameters = nil | ||
715 | + SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | ||
716 | + | ||
717 | + } else if (eventArray[1] == "get_unified_failed") { | ||
718 | + // event:get_unified_failed | ||
719 | + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | ||
720 | + dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" | ||
721 | + dynatraceEvent._parameters = nil | ||
722 | + SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | ||
723 | + | ||
677 | } | 724 | } |
678 | 725 | ||
679 | } | 726 | } | ... | ... |
... | @@ -7406,13 +7406,13 @@ public class swiftApi { | ... | @@ -7406,13 +7406,13 @@ public class swiftApi { |
7406 | DispatchQueue.main.async { | 7406 | DispatchQueue.main.async { |
7407 | if (tempResponse.getStatus == 1) { | 7407 | if (tempResponse.getStatus == 1) { |
7408 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7408 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7409 | - dynatraceEvent._eventName = "custom_success_cancel_unified_coupon" | 7409 | + dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty" |
7410 | dynatraceEvent._parameters = nil | 7410 | dynatraceEvent._parameters = nil |
7411 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7411 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7412 | 7412 | ||
7413 | } else { | 7413 | } else { |
7414 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7414 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7415 | - dynatraceEvent._eventName = "custom_error_cancel_unified_coupon" | 7415 | + dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7416 | dynatraceEvent._parameters = nil | 7416 | dynatraceEvent._parameters = nil |
7417 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7417 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7418 | 7418 | ||
... | @@ -7420,7 +7420,7 @@ public class swiftApi { | ... | @@ -7420,7 +7420,7 @@ public class swiftApi { |
7420 | } | 7420 | } |
7421 | } else { | 7421 | } else { |
7422 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7422 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7423 | - dynatraceEvent._eventName = "custom_error_cancel_unified_coupon" | 7423 | + dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7424 | dynatraceEvent._parameters = nil | 7424 | dynatraceEvent._parameters = nil |
7425 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7425 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7426 | } | 7426 | } |
... | @@ -7429,7 +7429,7 @@ public class swiftApi { | ... | @@ -7429,7 +7429,7 @@ public class swiftApi { |
7429 | 7429 | ||
7430 | } else { | 7430 | } else { |
7431 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7431 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7432 | - dynatraceEvent._eventName = "custom_error_cancel_unified_coupon" | 7432 | + dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7433 | dynatraceEvent._parameters = nil | 7433 | dynatraceEvent._parameters = nil |
7434 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7434 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7435 | 7435 | ||
... | @@ -7444,7 +7444,7 @@ public class swiftApi { | ... | @@ -7444,7 +7444,7 @@ public class swiftApi { |
7444 | print("====================") | 7444 | print("====================") |
7445 | 7445 | ||
7446 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7446 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7447 | - dynatraceEvent._eventName = "custom_error_cancel_unified_coupon" | 7447 | + dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7448 | dynatraceEvent._parameters = nil | 7448 | dynatraceEvent._parameters = nil |
7449 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7449 | SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7450 | 7450 | ... | ... |
-
Please register or login to post a comment