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-06-10 12:57:23 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f54b49bb6bf380e5dc66b29738c4a6c7a8b2730a
f54b49bb
1 parent
44a93187
add WarplyPacingCardServiceEnabledModel
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
f54b49b
...
...
@@ -105,6 +105,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
pacingEvent
.
_isVisible
=
true
SwiftEventBus
.
post
(
"pacing_visible"
,
sender
:
pacingEvent
)
// pacing_service event
let
pacingService
=
swiftApi
.
WarplyPacingCardServiceEnabledModel
()
pacingService
.
_isEnabled
=
true
SwiftEventBus
.
post
(
"pacing_service"
,
sender
:
pacingService
)
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
CouponBarcodeViewController
vc
.
coupon
=
coupons
[
indexPath
.
row
]
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
f54b49b
...
...
@@ -1220,4 +1220,23 @@ public class swiftApi {
}
}
public
class
WarplyPacingCardServiceEnabledModel
{
private
var
isEnabled
:
Bool
public
init
()
{
self
.
isEnabled
=
false
}
public
var
_isEnabled
:
Bool
{
get
{
// getter
return
self
.
isEnabled
}
set
(
newValue
)
{
//setter
self
.
isEnabled
=
newValue
}
}
}
}
...
...
Please
register
or
login
to post a comment