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-10-04 16:13:07 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9bf0525e6490a4ad8ba91daf7ccce1348e547147
9bf0525e
1 parent
6fd4c909
fix campaigns_retrieved event
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9bf0525
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
9bf0525
...
...
@@ -181,6 +181,7 @@ var timer2: DispatchSourceTimer?
swiftApi
()
.
setUserTag
(
""
)
}
SwiftEventBus
.
post
(
"questionnaire"
,
sender
:
questionnaireEvent
)
SwiftEventBus
.
post
(
"campaigns_retrieved"
)
}
}
else
{
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
9bf0525
...
...
@@ -169,6 +169,7 @@ import SwiftEventBus
func
getCampaignsCallback
(
_
campaignsData
:
Array
<
swiftApi
.
CampaignItemModel
>
?)
->
Void
{
if
(
campaignsData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
SwiftEventBus
.
post
(
"campaigns_retrieved"
)
}
}
else
{
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
9bf0525
...
...
@@ -1166,7 +1166,7 @@ public class swiftApi {
getCampaignsCallback
(
sortedCampaigns
);
SwiftEventBus
.
post
(
"campaigns_retrieved"
)
//
SwiftEventBus.post("campaigns_retrieved")
})
}
else
{
...
...
@@ -5777,6 +5777,7 @@ public class swiftApi {
func
getCampaignsCallback
(
_
campaignsData
:
Array
<
swiftApi
.
CampaignItemModel
>
?)
->
Void
{
if
(
campaignsData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
SwiftEventBus
.
post
(
"campaigns_retrieved"
)
}
}
else
{
}
...
...
@@ -5804,6 +5805,7 @@ public class swiftApi {
func
getCampaignsCallback
(
_
campaignsData
:
Array
<
swiftApi
.
CampaignItemModel
>
?)
->
Void
{
if
(
campaignsData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
SwiftEventBus
.
post
(
"campaigns_retrieved"
)
}
}
else
{
}
...
...
Please
register
or
login
to post a comment