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 11:58:40 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4a7d51acf4393478c1a412a1cac48fb66d763171
4a7d51ac
1 parent
b5f3f17d
add dynatraceEvents
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
4a7d51a
...
...
@@ -621,7 +621,7 @@ public class swiftApi {
if
let
responseDataDictionary
=
couponSetsData
as?
[
String
:
AnyObject
]
{
if
(
responseDataDictionary
[
"status"
]
as?
Int
==
1
)
{
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_success_couponset_sm_loyalty"
dynatraceEvent
.
_eventName
=
"custom_success_couponset
s
_sm_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
...
...
@@ -633,21 +633,21 @@ public class swiftApi {
}
}
else
{
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_couponset_sm_loyalty"
dynatraceEvent
.
_eventName
=
"custom_error_couponset
s
_sm_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
}
}
else
{
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_couponset_sm_loyalty"
dynatraceEvent
.
_eventName
=
"custom_error_couponset
s
_sm_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
}
}
else
{
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_couponset_sm_loyalty"
dynatraceEvent
.
_eventName
=
"custom_error_couponset
s
_sm_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
}
...
...
@@ -660,7 +660,7 @@ public class swiftApi {
print
(
"getCouponSetsDeals error: "
)
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_couponset_sm_loyalty"
dynatraceEvent
.
_eventName
=
"custom_error_couponset
s
_sm_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
...
...
@@ -7217,10 +7217,10 @@ public class swiftApi {
if
let
responseDataDictionary
=
responseData
as?
[
String
:
AnyObject
]
{
if
(
responseDataDictionary
[
"status"
]
as?
Int
==
1
)
{
//
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
// dynatraceEvent._eventName = "custom_success_campaig
ns_loyalty"
//
dynatraceEvent._parameters = nil
//
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_success_unified_coupo
ns_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
if
let
responseDataResult
=
responseDataDictionary
[
"result"
]
as?
[
String
:
Any
]
{
if
let
responseDataCoupons
=
responseDataResult
[
"coupons"
]
as?
[[
String
:
Any
]?]
{
...
...
@@ -7274,19 +7274,19 @@ public class swiftApi {
}
}
else
{
//
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
// dynatraceEvent._eventName = "custom_error_campaig
ns_loyalty"
//
dynatraceEvent._parameters = nil
//
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_unified_coupo
ns_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
successCallback
(
nil
)
}
}
else
{
//
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
// dynatraceEvent._eventName = "custom_error_campaig
ns_loyalty"
//
dynatraceEvent._parameters = nil
//
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_unified_coupo
ns_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
successCallback
(
nil
)
}
...
...
@@ -7297,10 +7297,10 @@ public class swiftApi {
print
(
error
)
print
(
"===================="
)
//
let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
// dynatraceEvent._eventName = "custom_error_campaig
ns_loyalty"
//
dynatraceEvent._parameters = nil
//
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
let
dynatraceEvent
=
swiftApi
.
LoyaltySDKDynatraceEventModel
()
dynatraceEvent
.
_eventName
=
"custom_error_unified_coupo
ns_loyalty"
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
successCallback
(
nil
)
}
...
...
Please
register
or
login
to post a comment