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
2022-07-06 15:05:40 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
401370a12582368b10807b173fd061cfadeeb5a8
401370a1
1 parent
4ff8269b
fix addUserTag event v2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
401370a
...
...
@@ -45,11 +45,15 @@ import SwiftEventBus
}
else
if
(
eventArray
[
1
]
==
"addUserTag"
)
{
let
questionnaireEvent
=
swiftApi
.
QuestionnaireEventModel
()
questionnaireEvent
.
_name
=
String
(
eventArray
[
1
])
questionnaireEvent
.
_parameter
=
String
(
eventArray
[
2
])
if
(
eventArray
.
count
>
2
)
{
questionnaireEvent
.
_parameter
=
String
(
eventArray
[
2
])
swiftApi
()
.
setUserTag
(
String
(
eventArray
[
2
]))
}
else
{
questionnaireEvent
.
_parameter
=
""
swiftApi
()
.
setUserTag
(
""
)
}
SwiftEventBus
.
post
(
"questionnaire"
,
sender
:
questionnaireEvent
)
swiftApi
()
.
setUserTag
(
String
(
eventArray
[
2
]))
}
else
if
(
eventArray
[
1
]
==
"couponRetrieved"
)
{
let
couponEvent
=
swiftApi
.
CouponEventModel
()
SwiftEventBus
.
post
(
"coupon_retrieved"
,
sender
:
couponEvent
)
...
...
Please
register
or
login
to post a comment