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-25 12:51:19 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5be8b25cf5df59d9c7f9fce48b62be2ae60a87f4
5be8b25c
1 parent
9b41e18d
fix setUniqueCampaignList
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
5be8b25
...
...
@@ -2718,18 +2718,18 @@ public class swiftApi {
public
func
setUniqueCampaignList
(
_
campaigns
:
Array
<
CampaignItemModel
>
)
->
Void
{
let
userTag
=
self
.
getUserTag
()
var
campaignsArray
:
Array
<
CampaignItemModel
>
=
[]
//
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
)
}
}
//
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