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-07-11 18:01:16 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a464e5c936cbb5593c0b6cbc51ef723c24fa65b4
a464e5c9
1 parent
35afeec7
fix WarplyPacingEventModel
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
22 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
a464e5c
...
...
@@ -59,17 +59,19 @@ import SwiftEventBus
let
couponEvent
=
swiftApi
.
CouponEventModel
()
SwiftEventBus
.
post
(
"coupon_retrieved"
,
sender
:
couponEvent
)
}
else
if
(
eventArray
[
2
]
==
"serviceDisabled"
)
{
let
pacingService
=
swiftApi
.
WarplyPacingEventModel
()
pacingService
.
_isEnabled
=
false
SwiftEventBus
.
post
(
"pacing"
,
sender
:
pacingService
)
}
else
if
(
eventArray
[
2
]
==
"serviceEnabled"
)
{
let
pacingService
=
swiftApi
.
WarplyPacingEventModel
()
pacingService
.
_isEnabled
=
true
SwiftEventBus
.
post
(
"pacing"
,
sender
:
pacingService
)
}
else
if
(
eventArray
[
2
]
==
"shortcutEnabled"
)
{
}
// else if (eventArray[2] == "serviceDisabled") {
// let pacingService = swiftApi.WarplyPacingEventModel()
// pacingService._isEnabled = false
// SwiftEventBus.post("pacing", sender: pacingService)
// } else if (eventArray[2] == "serviceEnabled") {
// let pacingService = swiftApi.WarplyPacingEventModel()
// pacingService._isEnabled = true
// SwiftEventBus.post("pacing", sender: pacingService)
// }
else
if
(
eventArray
[
2
]
==
"shortcutEnabled"
)
{
let
pacingEvent
=
swiftApi
.
WarplyPacingEventModel
()
pacingEvent
.
_isVisible
=
true
SwiftEventBus
.
post
(
"pacing"
,
sender
:
pacingEvent
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
a464e5c
...
...
@@ -2037,23 +2037,12 @@ public class swiftApi {
public
class
WarplyPacingEventModel
{
private
var
isEnabled
:
Bool
private
var
isVisible
:
Bool
public
init
()
{
self
.
isEnabled
=
false
self
.
isVisible
=
false
}
public
var
_isEnabled
:
Bool
{
get
{
// getter
return
self
.
isEnabled
}
set
(
newValue
)
{
//setter
self
.
isEnabled
=
newValue
}
}
public
var
_isVisible
:
Bool
{
get
{
// getter
return
self
.
isVisible
...
...
Please
register
or
login
to post a comment