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:46 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b8fad255d04bb250c75a5cf199873effc08df7cd
b8fad255
1 parent
51b30ab5
test handleContextualCampaigns
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
b8fad25
...
...
@@ -160,10 +160,11 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
(
campaigns
[
indexPath
.
row
]
.
_ccms
!=
nil
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"ContextualViewController"
)
as!
SwiftWarplyFramework
.
ContextualViewController
vc
.
ccms
=
campaigns
[
indexPath
.
row
]
.
_ccms
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
// let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController
// vc.ccms = campaigns[indexPath.row]._ccms
// self.navigationController?.pushViewController(vc, animated: true)
swiftApi
()
.
handleContextualCampaigns
(
campaigns
[
indexPath
.
row
]
.
_ccms
!
,
self
)
}
else
if
(
campaigns
[
indexPath
.
row
]
.
_type
!=
nil
&&
campaigns
[
indexPath
.
row
]
.
_type
==
"telco"
)
{
let
ccmsCampaigns
=
swiftApi
()
.
getCCMSLoyaltyCampaigns
()
...
...
Please
register
or
login
to post a comment