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-21 18:23:16 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
45cc73546dd2ee67c3d3984be734111003ab905b
45cc7354
1 parent
f348089d
fix getCampaignsPersonalizedAsync request
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
45cc735
...
...
@@ -833,9 +833,13 @@ public class swiftApi {
if
let
responseDataDictionary
=
campaignsData
as?
[
String
:
AnyObject
]
{
if
(
responseDataDictionary
[
"
MAPP_CAMPAIGNING-
status"
]
as?
Int
==
1
)
{
if
(
responseDataDictionary
[
"status"
]
as?
Int
==
1
)
{
if
let
responseDataMapp
=
responseDataDictionary
[
"MAPP_CAMPAIGNING"
]
as?
[
String
:
Any
]
{
if
let
responseDataContext
=
responseDataDictionary
[
"context"
]
as?
[
String
:
Any
]
{
if
(
responseDataContext
[
"MAPP_CAMPAIGNING-status"
]
as?
Int
==
1
)
{
if
let
responseDataMapp
=
responseDataContext
[
"MAPP_CAMPAIGNING"
]
as?
[
String
:
Any
]
{
if
let
responseDataCampaigns
=
responseDataMapp
[
"campaigns"
]
as?
[[
String
:
Any
]?]
{
for
item
in
responseDataCampaigns
{
...
...
@@ -858,6 +862,13 @@ public class swiftApi {
}
else
{
getCampaignsCallback
(
nil
)
}
}
else
{
getCampaignsCallback
(
nil
)
}
}
else
{
getCampaignsCallback
(
nil
)
}
}
func
campaignsFailureCallback
(
_
error
:
Error
?)
->
Void
{
...
...
Please
register
or
login
to post a comment