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
2025-01-21 15:03:18 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
805bdebc2570c1ad5f35ec00ef62cd1fa5383f10
805bdebc
1 parent
9ceb0269
add error popup at MarketPassViewController
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MarketPassViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MarketPassViewController.swift
View file @
805bdeb
...
...
@@ -243,6 +243,25 @@ import AVFoundation
spinner
.
view
.
removeFromSuperview
()
spinner
.
removeFromParent
()
}
func
showDialog
(
_
alertTitle
:
String
,
_
alertSubTitle
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
alertTitle
,
message
:
alertSubTitle
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"OK"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
print
(
"default"
)
case
.
cancel
:
print
(
"cancel"
)
case
.
destructive
:
print
(
"destructive"
)
}
}))
self
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
}
func
constructBarcode
()
->
String
?
{
// EAN 13 barcode construction
...
...
@@ -287,6 +306,7 @@ import AVFoundation
swiftApi
()
.
getMarketPassDetailsAsync
(
getMarketPassDetailsCallback
,
failureCallback
:
{
errorCode
in
print
(
"========= getMarketPassDetailsRequest ERROR CODE ========="
,
errorCode
)
self
.
hideSpinner
()
self
.
showDialog
(
"Αποτυχία"
,
"Κάτι πήγε στραβά"
)
})
}
...
...
@@ -301,6 +321,7 @@ import AVFoundation
}
}
}
else
{
self
.
showDialog
(
"Αποτυχία"
,
"Κάτι πήγε στραβά"
)
}
}
// MARK: - API Functions
...
...
Please
register
or
login
to post a comment