Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2023-10-04 12:33:34 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b1234122d92eb022a4273d540063067d696d124c
b1234122
1 parent
4a7d51ac
add dynatraceEvents part 2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
b123412
...
...
@@ -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
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
b123412
...
...
@@ -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
)
...
...
Please
register
or
login
to post a comment