Manos Chorianopoulos

refactor getCampaignList, add getAllCampaignList

......@@ -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
}
......