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-12 13:30:13 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
83644a169cad587c5dfab538281def6da0a1db57
83644a16
1 parent
692a4124
refactor getCampaignList, add getAllCampaignList
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
83644a1
...
...
@@ -2239,6 +2239,21 @@ public class swiftApi {
public
func
getCampaignList
()
->
Array
<
CampaignItemModel
>
{
let
filteredCampaigns
=
GlobalVariables
.
campaigns
.
filter
{
let
tempCampaign
=
$0
let
isCcmsOffer
=
(
tempCampaign
.
ccms_offer
!=
nil
)
&&
(
tempCampaign
.
ccms_offer
!=
""
)
&&
(
tempCampaign
.
ccms_offer
==
"true"
)
return
(
!
isCcmsOffer
)
}
print
(
"getCampaignList:{"
+
String
(
filteredCampaigns
.
count
)
+
"} campaigns"
)
return
filteredCampaigns
}
public
func
getAllCampaignList
()
->
Array
<
CampaignItemModel
>
{
return
GlobalVariables
.
campaigns
}
...
...
Please
register
or
login
to post a comment