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-13 14:35:31 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fd68c6deaddeb1e8789c2eaa3598a08ca6ffe89
2fd68c6d
1 parent
9bf07cc2
add openCouponset func
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
2fd68c6
...
...
@@ -2207,6 +2207,31 @@ public class swiftApi {
}
}
public
func
openCouponset
(
_
controller
:
UIViewController
)
->
Void
{
for
campaign
in
GlobalVariables
.
campaigns
{
if
(
campaign
.
_campaign_type
==
"coupon"
)
{
let
couponsetUuid
=
campaign
.
_couponset
if
(
couponsetUuid
!=
""
)
{
let
couponsetsList
=
swiftApi
()
.
getCouponSetList
()
for
item
in
couponsetsList
{
if
(
item
.
uuid
==
couponsetUuid
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponViewController"
)
as!
SwiftWarplyFramework
.
CouponViewController
vc
.
couponset
=
item
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
;
}
}
}
}
}
}
public
func
setCampaignList
(
_
campaigns
:
Array
<
CampaignItemModel
>
)
->
Void
{
// let userTag = self.getUserTag()
// var campaignsArray:Array<CampaignItemModel> = []
...
...
Please
register
or
login
to post a comment