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
2024-11-01 11:12:27 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
93518ae828d09288682dc6828bbccc8c269019fa
93518ae8
1 parent
1378ca00
initialSharingDialog, returnDialog optimizations
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
93518ae
...
...
@@ -1259,6 +1259,10 @@ public class swiftApi {
}
}
public
func
getCouponsAsyncInternal
(
_
getCouponsCallback
:
@escaping
(
_
couponsData
:
Array
<
CouponItemModel
>
?)
->
Void
,
failureCallback
:
@escaping
(
_
errorCode
:
Int
)
->
Void
)
->
Void
{
swiftApi
()
.
getCouponsUniversalAsync
(
language
:
"el"
,
getCouponsCallback
,
failureCallback
:
failureCallback
)
}
public
class
func
getCoupons
()
->
Array
<
CouponItemModel
>
{
return
CouponsDataModel
()
.
getData
}
...
...
@@ -4377,7 +4381,8 @@ public class swiftApi {
if
(
sharingData
?
.
getStatus
==
1
)
{
self
.
acceptSharingDialog
(
controller
,
couponsetType
)
swiftApi
()
.
getCouponsAsync
(
getCouponsCallback
,
failureCallback
:
{
errorCode
in
})
// swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
swiftApi
()
.
getCouponsAsyncInternal
(
getCouponsCallback
,
failureCallback
:
{
errorCode
in
})
func
getCouponsCallback
(
_
couponsData
:
Array
<
swiftApi
.
CouponItemModel
>
?)
->
Void
{
if
(
couponsData
!=
nil
)
{
...
...
@@ -4444,7 +4449,8 @@ public class swiftApi {
if
(
sharingData
?
.
getStatus
==
1
)
{
swiftApi
()
.
getCouponsAsync
(
getCouponsCallback
,
failureCallback
:
{
errorCode
in
})
// swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
swiftApi
()
.
getCouponsAsyncInternal
(
getCouponsCallback
,
failureCallback
:
{
errorCode
in
})
func
getCouponsCallback
(
_
couponsData
:
Array
<
swiftApi
.
CouponItemModel
>
?)
->
Void
{
if
(
couponsData
!=
nil
)
{
...
...
Please
register
or
login
to post a comment