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 15:53:51 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b8ca074e2f2b0015a5fdc00fc033a21ab83bdfc4
b8ca074e
1 parent
7c142d4f
add WarplyCCMSEnabledModel
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b8ca074
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
b8ca074
...
...
@@ -115,6 +115,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
dealsAnalysis
.
_isPressed
=
true
SwiftEventBus
.
post
(
"analysis_pressed"
,
sender
:
dealsAnalysis
)
// ccms_enabled event
let
ccmsEnabled
=
swiftApi
.
WarplyCCMSEnabledModel
()
ccmsEnabled
.
_isActivated
=
true
SwiftEventBus
.
post
(
"ccms_enabled"
,
sender
:
ccmsEnabled
)
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 @
b8ca074
...
...
@@ -1443,4 +1443,23 @@ public class swiftApi {
}
}
public
class
WarplyCCMSEnabledModel
{
private
var
isActivated
:
Bool
public
init
()
{
self
.
isActivated
=
false
}
public
var
_isActivated
:
Bool
{
get
{
// getter
return
self
.
isActivated
}
set
(
newValue
)
{
//setter
self
.
isActivated
=
newValue
}
}
}
}
...
...
Please
register
or
login
to post a comment