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-20 15:21:00 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da0cd0542523a8a79961fae3c7ba8af374e1329f
da0cd054
1 parent
27e7fbe9
add postEvent functionality at telcoVC
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
da0cd05
...
...
@@ -129,6 +129,7 @@ import UIKit
DispatchQueue
.
main
.
async
{
if
(
response
?
.
getStatus
==
1
)
{
self
.
showDialog
(
"Το αίτημά σου ολοκληρώθηκε επιτυχώς!"
,
"Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου."
)
self
.
postEventRequest
()
}
else
{
self
.
showDialog
(
"Αποτυχία"
,
"Κάτι πήγε στραβά"
)
...
...
@@ -139,6 +140,22 @@ import UIKit
}
}
func
postEventRequest
()
{
swiftApi
()
.
postEventAsync
(
Session_ID
:
(
campaign
?
.
session_uuid
??
""
),
OfferAudienceLevel
:
(
ccms
?
.
_offerAudienceLevel
??
""
),
msisdn
:
self
.
selectedNumber
,
UACIOfferTrackingCode
:
(
ccms
?
.
_uaciOfferTrackingCode
??
""
),
OFFERCODE1
:
(
ccms
?
.
_offerCode1
??
""
),
SCORE
:
(
ccms
?
.
_score
??
""
),
ZONE
:
(
ccms
?
.
_zone
??
""
),
WAVE
:
(
ccms
?
.
_wave
??
""
),
VALIDITY
:
(
ccms
?
.
_validity
??
""
),
TREATMENT_CODE
:
(
ccms
?
.
_treatmentCode
??
""
),
postEventCallback
)
}
func
postEventCallback
(
_
response
:
swiftApi
.
GenericResponseModel
?)
->
Void
{
if
(
response
!=
nil
)
{
DispatchQueue
.
main
.
async
{
if
(
response
?
.
getStatus
==
1
)
{
}
else
{
}
}
}
else
{
}
}
// MARK: - Actions
@IBAction
func
activateButtomAction
(
_
sender
:
Any
)
{
self
.
numbersPopupTapped
(
sender
)
...
...
Please
register
or
login
to post a comment