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-15 12:41:48 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fcd0d9e5dc9fb5d95f18805c4a745f96aa5b3d3a
fcd0d9e5
1 parent
85aaec0a
fix gfy campaigns sorting
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
fcd0d9e
...
...
@@ -13,9 +13,10 @@ import SwiftEventBus
@IBOutlet
weak
var
mainView
:
UIView
!
@IBOutlet
weak
var
tableView
:
UITableView
!
public
var
campaigns
:
Array
<
swiftApi
.
CampaignItemModel
>
=
swiftApi
()
.
mergeGFYCCMSLoyaltyCampaigns
(
campaigns
:
swiftApi
()
.
getCCMSLoyaltyCampaigns
())
public
var
campaigns
:
Array
<
swiftApi
.
CampaignItemModel
>
=
[]
public
var
seasonalList
:
Array
<
swiftApi
.
LoyaltyGiftsForYouPackage
>
=
swiftApi
()
.
getSeasonalList
()
public
var
ccmsList
:
Array
<
swiftApi
.
LoyaltyContextualOfferModel
>
=
swiftApi
()
.
getCCMSLoyaltyCampaigns
()
public
var
loyaltyList
:
Array
<
swiftApi
.
CampaignItemModel
>
=
swiftApi
()
.
mergeGFYCCMSLoyaltyCampaigns
(
campaigns
:
swiftApi
()
.
getCCMSLoyaltyCampaigns
())
public
override
func
viewDidLoad
()
{
...
...
@@ -45,6 +46,10 @@ import SwiftEventBus
}
}
if
(
loyaltyList
.
count
>
0
)
{
campaigns
=
campaigns
+
loyaltyList
}
setBackButton
()
setNavigationTitle
(
"GIFTS for YOU"
,
"bold"
)
...
...
@@ -113,6 +118,10 @@ import SwiftEventBus
}
}
if
(
self
.
loyaltyList
.
count
>
0
)
{
self
.
campaigns
=
self
.
campaigns
+
self
.
loyaltyList
}
self
.
tableView
.
reloadData
()
}
...
...
Please
register
or
login
to post a comment