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-06-21 12:08:49 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
52c54f3f034c6a28fd9d4731e9810318b492001d
52c54f3f
1 parent
80509dd4
Add unified_coupon_activated event to CampaignVC
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
52c54f3
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment