Showing
2 changed files
with
11 additions
and
0 deletions
No preview for this file type
... | @@ -2012,8 +2012,13 @@ public class swiftApi { | ... | @@ -2012,8 +2012,13 @@ public class swiftApi { |
2012 | } | 2012 | } |
2013 | 2013 | ||
2014 | public func setCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { | 2014 | public func setCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { |
2015 | + let userTag = self.getUserTag() | ||
2016 | + if ((userTag != nil) && (userTag != "")) { | ||
2017 | + GlobalVariables.campaigns = campaigns.filter { $0.offer_category != "questionnaire" } | ||
2018 | + } else { | ||
2015 | GlobalVariables.campaigns = campaigns | 2019 | GlobalVariables.campaigns = campaigns |
2016 | } | 2020 | } |
2021 | + } | ||
2017 | 2022 | ||
2018 | 2023 | ||
2019 | public class WarplyDealsAnalysisEventModel { | 2024 | public class WarplyDealsAnalysisEventModel { |
... | @@ -2141,8 +2146,14 @@ public class swiftApi { | ... | @@ -2141,8 +2146,14 @@ public class swiftApi { |
2141 | 2146 | ||
2142 | 2147 | ||
2143 | public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { | 2148 | public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { |
2149 | + let userTag = self.getUserTag() | ||
2150 | + | ||
2151 | + if ((userTag != nil) && (userTag != "")) { | ||
2152 | + GlobalVariables.campaigns = campaigns.filter { $0.offer_category != "questionnaire" } | ||
2153 | + } else { | ||
2144 | GlobalVariables.campaigns = campaigns | 2154 | GlobalVariables.campaigns = campaigns |
2145 | } | 2155 | } |
2156 | + } | ||
2146 | 2157 | ||
2147 | 2158 | ||
2148 | public func getCampaignList() -> Array<CampaignItemModel> { | 2159 | public func getCampaignList() -> Array<CampaignItemModel> { | ... | ... |
-
Please register or login to post a comment