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-09-02 16:27:16 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51b30ab547d9afba01d30d589215fc9ef55f413b
51b30ab5
1 parent
92c0e9e2
fix handleContextualCampaigns
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
51b30ab
...
...
@@ -4506,6 +4506,16 @@ public class swiftApi {
public
func
handleContextualCampaigns
(
_
ccms
:
LoyaltyContextualOfferModel
,
_
controller
:
UIViewController
)
->
Void
{
// if (((ccms._loyaltyCampaignId == "") || (ccms._loyaltyCampaignId == "NA")) && ((ccms._zone == "COSMOTE_APP_GIFTS4U") || (ccms._zone == "COSMOTE_APP_MORE4U"))) {
if
((
ccms
.
_loyaltyCampaignId
==
""
)
||
(
ccms
.
_loyaltyCampaignId
==
"NA"
))
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"ContextualViewController"
)
as!
SwiftWarplyFramework
.
ContextualViewController
vc
.
ccms
=
ccms
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
let
allCampaigns
=
swiftApi
()
.
getAllCampaignList
()
for
loyaltyCampaign
in
allCampaigns
{
...
...
@@ -4533,6 +4543,7 @@ public class swiftApi {
}
}
}
}
// _ center: Array<Double>
...
...
Please
register
or
login
to post a comment