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-21 18:41:45 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a6763de2a07a46dc0c62f871a8fbf60d181ea4b9
a6763de2
1 parent
45cc7354
refresh campaigns after redeemCouponSet
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
a6763de
...
...
@@ -44,6 +44,12 @@ import SwiftEventBus
self
.
tableView
.
reloadData
()
}
SwiftEventBus
.
onMainThread
(
self
,
name
:
"campaigns_retrieved"
)
{
result
in
print
(
"===== SwiftEventBus campaigns_retrieved ====="
)
self
.
campaigns
=
swiftApi
()
.
mergeGFYCCMSLoyaltyCampaigns
(
campaigns
:
swiftApi
()
.
getCCMSLoyaltyCampaigns
())
self
.
tableView
.
reloadData
()
}
tableView
.
clipsToBounds
=
true
tableView
.
layer
.
cornerRadius
=
30
tableView
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
]
// Top left corner radius
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
View file @
a6763de
...
...
@@ -33,6 +33,12 @@ import SwiftEventBus
self
.
tableView
.
reloadData
()
}
SwiftEventBus
.
onMainThread
(
self
,
name
:
"campaigns_retrieved"
)
{
result
in
print
(
"===== SwiftEventBus campaigns_retrieved ====="
)
self
.
campaigns
=
swiftApi
()
.
mergeMFYCCMSLoyaltyCampaigns
(
campaigns
:
swiftApi
()
.
getCCMSLoyaltyCampaigns
())
self
.
tableView
.
reloadData
()
}
tableView
.
clipsToBounds
=
true
tableView
.
layer
.
cornerRadius
=
30
tableView
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
]
// Top left corner radius
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
a6763de
...
...
@@ -795,6 +795,8 @@ public class swiftApi {
swiftApi
()
.
setUniqueCampaignList
(
campaignsArray
)
SwiftEventBus
.
post
(
"campaigns_retrieved"
)
let
filteredCampaigns
=
campaignsArray
.
filter
{
let
tempCampaign
=
$0
let
isCcmsOffer
=
(
tempCampaign
.
ccms_offer
!=
nil
)
&&
(
tempCampaign
.
ccms_offer
!=
""
)
&&
(
tempCampaign
.
ccms_offer
==
"true"
)
...
...
Please
register
or
login
to post a comment