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 16:59:25 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
82c1307220658693a48f7c12f0e85db336439947
82c13072
1 parent
4197259d
fix setCampaignList not to filter for badge
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
82c1307
...
...
@@ -2122,18 +2122,18 @@ public class swiftApi {
}
public
func
setCampaignList
(
_
campaigns
:
Array
<
CampaignItemModel
>
)
->
Void
{
let
userTag
=
self
.
getUserTag
()
var
campaignsArray
:
Array
<
CampaignItemModel
>
=
[]
for
item
in
campaigns
{
if
(((
item
.
_badge
==
nil
)
||
(
item
.
_badge
==
""
)))
{
campaignsArray
.
append
(
item
)
}
else
if
(
item
.
_badge
==
userTag
)
{
campaignsArray
.
append
(
item
)
}
}
//
let userTag = self.getUserTag()
//
var campaignsArray:Array<CampaignItemModel> = []
//
for item in campaigns {
//
if (((item._badge == nil) || (item._badge == ""))) {
//
campaignsArray.append(item)
//
} else if (item._badge == userTag) {
//
campaignsArray.append(item)
//
}
//
}
GlobalVariables
.
campaigns
=
campaigns
Array
GlobalVariables
.
campaigns
=
campaigns
}
...
...
Please
register
or
login
to post a comment