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-05 14:10:55 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8c0a0df42773b454ba004f2a2b5f3e98cfb49de
f8c0a0df
1 parent
be14b0f2
delete questionnaire campaign if user has userTag
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
.DS_Store
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
.DS_Store
View file @
f8c0a0d
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
f8c0a0d
...
...
@@ -2012,8 +2012,13 @@ public class swiftApi {
}
public
func
setCampaignList
(
_
campaigns
:
Array
<
CampaignItemModel
>
)
->
Void
{
let
userTag
=
self
.
getUserTag
()
if
((
userTag
!=
nil
)
&&
(
userTag
!=
""
))
{
GlobalVariables
.
campaigns
=
campaigns
.
filter
{
$0
.
offer_category
!=
"questionnaire"
}
}
else
{
GlobalVariables
.
campaigns
=
campaigns
}
}
public
class
WarplyDealsAnalysisEventModel
{
...
...
@@ -2141,8 +2146,14 @@ public class swiftApi {
public
func
setUniqueCampaignList
(
_
campaigns
:
Array
<
CampaignItemModel
>
)
->
Void
{
let
userTag
=
self
.
getUserTag
()
if
((
userTag
!=
nil
)
&&
(
userTag
!=
""
))
{
GlobalVariables
.
campaigns
=
campaigns
.
filter
{
$0
.
offer_category
!=
"questionnaire"
}
}
else
{
GlobalVariables
.
campaigns
=
campaigns
}
}
public
func
getCampaignList
()
->
Array
<
CampaignItemModel
>
{
...
...
Please
register
or
login
to post a comment