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-09-06 14:10:17 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
06cc57b1aee93f6e967dd9b96ad7408c80c69de8
06cc57b1
1 parent
4971b6fb
refresh coupons after accepting coupon from dl
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
06cc57b
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
06cc57b
...
...
@@ -556,6 +556,8 @@ public class swiftApi {
swiftApi
()
.
setCouponList
(
tempCoupons
)
swiftApi
()
.
setOldCouponList
(
tempCoupons
)
SwiftEventBus
.
post
(
"coupons_fetched"
)
let
activeCoupons
=
tempCoupons
.
filter
({
return
$0
.
status
==
1
})
getCouponsCallback
(
activeCoupons
)
}
...
...
@@ -2897,6 +2899,17 @@ public class swiftApi {
if
(
sharingData
?
.
getStatus
==
1
)
{
self
.
acceptSharingDialog
(
controller
)
swiftApi
()
.
getCouponsAsync
(
getCouponsCallback
)
func
getCouponsCallback
(
_
couponsData
:
Array
<
swiftApi
.
CouponItemModel
>
?)
->
Void
{
if
(
couponsData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
}
}
else
{
}
}
}
else
{
self
.
errorSharingDialog
(
controller
)
}
...
...
Please
register
or
login
to post a comment