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 10:44:28 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
410ae7eb626a8f84d5bf5117e3477a04ff3f8278
410ae7eb
1 parent
b3bd022f
refresh active coupons after activation
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
410ae7e
...
...
@@ -58,6 +58,22 @@ import SwiftEventBus
}
else
if
(
eventArray
[
1
]
==
"couponRetrieved"
)
{
let
couponEvent
=
swiftApi
.
CouponEventModel
()
SwiftEventBus
.
post
(
"coupon_retrieved"
,
sender
:
couponEvent
)
swiftApi
()
.
getCouponsAsync
(
getCouponsCallback
)
func
getCouponsCallback
(
_
couponsData
:
Array
<
swiftApi
.
CouponItemModel
>
?)
->
Void
{
if
(
couponsData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
print
(
"========= getCouponsRequest SUCCESSSS CampaignVC ========="
)
print
(
"========= getCouponsRequest count CampaignVC ========="
)
print
(
swiftApi
()
.
getCouponList
()
.
count
)
}
}
else
{
print
(
"========= getCouponsRequest ERROR CampaignVC ========="
)
}
}
}
else
if
(
eventArray
[
1
]
==
"couponShared"
)
{
...
...
Please
register
or
login
to post a comment