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:10:19 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d2e57ab45be49a249594bc48bc4c0359dc4ed73
0d2e57ab
1 parent
2970a6d8
add WarplyDealsAnalysisEventModel
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
0d2e57a
...
...
@@ -110,6 +110,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
pacingService
.
_isEnabled
=
true
SwiftEventBus
.
post
(
"pacing_service"
,
sender
:
pacingService
)
// analysis_pressed event
let
dealsAnalysis
=
swiftApi
.
WarplyDealsAnalysisEventModel
()
dealsAnalysis
.
_isPressed
=
true
SwiftEventBus
.
post
(
"analysis_pressed"
,
sender
:
dealsAnalysis
)
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 @
0d2e57a
...
...
@@ -1425,4 +1425,22 @@ public class swiftApi {
GlobalVariables
.
campaigns
=
campaigns
}
public
class
WarplyDealsAnalysisEventModel
{
private
var
isPressed
:
Bool
public
init
()
{
self
.
isPressed
=
false
}
public
var
_isPressed
:
Bool
{
get
{
// getter
return
self
.
isPressed
}
set
(
newValue
)
{
//setter
self
.
isPressed
=
newValue
}
}
}
}
...
...
Please
register
or
login
to post a comment