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-12-09 17:49:19 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e6bbb9c8e798b2cbc3c6f4d17f36a9628dab3bb9
e6bbb9c8
1 parent
fb2276e6
add ccms_enabled events
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e6bbb9c
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
e6bbb9c
...
...
@@ -219,6 +219,11 @@ var timer2: DispatchSourceTimer?
}
}
}
else
if
(
eventArray
[
1
]
==
"ccmsRetrieved"
)
{
let
ccmsEnabled
=
swiftApi
.
WarplyCCMSEnabledModel
()
ccmsEnabled
.
_isActivated
=
true
SwiftEventBus
.
post
(
"ccms_enabled"
,
sender
:
ccmsEnabled
)
}
else
if
(
eventArray
[
1
]
==
"couponShared"
)
{
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
e6bbb9c
...
...
@@ -188,6 +188,10 @@ import SwiftEventBus
firebaseEvent
.
setParameter
=
(
"successful"
,
"true"
)
SwiftEventBus
.
post
(
"firebase"
,
sender
:
firebaseEvent
)
let
ccmsEnabled
=
swiftApi
.
WarplyCCMSEnabledModel
()
ccmsEnabled
.
_isActivated
=
true
SwiftEventBus
.
post
(
"ccms_enabled"
,
sender
:
ccmsEnabled
)
self
.
showDialog
(
"Το αίτημά σου ολοκληρώθηκε επιτυχώς!"
,
"Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου."
)
// self.postEventRequest()
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
e6bbb9c
...
...
@@ -201,6 +201,12 @@ import SwiftEventBus
firebaseEvent
.
setParameter
=
(
"successful"
,
"true"
)
SwiftEventBus
.
post
(
"firebase"
,
sender
:
firebaseEvent
)
if
(
self
.
ccms
!=
nil
)
{
let
ccmsEnabled
=
swiftApi
.
WarplyCCMSEnabledModel
()
ccmsEnabled
.
_isActivated
=
true
SwiftEventBus
.
post
(
"ccms_enabled"
,
sender
:
ccmsEnabled
)
}
self
.
showSuccessDialog
(
"Επιτυχής ενεργοποίηση"
,
"Το κουπόνι σου έχει ενεργοποιηθεί στην ενότητα My Rewards."
)
swiftApi
()
.
getCouponsAsync
(
getCouponsCallback
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
e6bbb9c
...
...
@@ -241,6 +241,10 @@ import SwiftEventBus
firebaseEvent
.
setParameter
=
(
"successful"
,
"true"
)
SwiftEventBus
.
post
(
"firebase"
,
sender
:
firebaseEvent
)
let
ccmsEnabled
=
swiftApi
.
WarplyCCMSEnabledModel
()
ccmsEnabled
.
_isActivated
=
true
SwiftEventBus
.
post
(
"ccms_enabled"
,
sender
:
ccmsEnabled
)
self
.
showDialog
(
"Το αίτημά σου ολοκληρώθηκε επιτυχώς!"
,
"Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου."
)
// self.postEventRequest()
...
...
Please
register
or
login
to post a comment