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-09-16 11:59:48 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f30934ee476a765a34bf9be7a368027eca9a3928
f30934ee
1 parent
76ee3cc0
added status 7 popup in sharing
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
f30934e
...
...
@@ -3022,7 +3022,7 @@ public class swiftApi {
DispatchQueue
.
main
.
async
{
if
(
sharingData
?
.
_status_outer
==
1
)
{
if
(
sharingData
?
.
_status
!=
nil
&&
sharingData
?
.
_status
!=
""
&&
sharingData
?
.
_status
==
"pending"
)
{
self
.
initialSharingDialog
(
controller
,
sharingData
?
.
_modal_text
??
""
,
sharingId
)
self
.
initialSharingDialog
(
controller
,
"Συγχαρητήρια!"
,
sharingData
?
.
_modal_text
??
""
,
sharingId
)
}
else
if
(
sharingData
?
.
_status
!=
nil
&&
sharingData
?
.
_status
!=
""
&&
sharingData
?
.
_status
==
"reject"
)
{
self
.
returnSharingDialog
(
controller
,
sharingData
?
.
_modal_text
??
""
)
...
...
@@ -3033,6 +3033,9 @@ public class swiftApi {
}
else
if
(
sharingData
?
.
_status_outer
==
5
)
{
self
.
errorUsedDialog
(
controller
,
sharingData
?
.
_msg
??
""
)
}
else
if
(
sharingData
?
.
_status_outer
==
7
)
{
self
.
initialSharingDialog
(
controller
,
"Επιστροφή δώρου"
,
sharingData
?
.
_msg
??
""
,
sharingId
)
}
}
}
else
{
// status != 1
...
...
@@ -3041,9 +3044,9 @@ public class swiftApi {
}
}
func
initialSharingDialog
(
_
controller
:
UIViewController
,
_
alertTitle
:
String
,
_
sharingId
:
String
)
->
Void
{
func
initialSharingDialog
(
_
controller
:
UIViewController
,
_
alert
HeaderTitle
:
String
,
_
alert
Title
:
String
,
_
sharingId
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
"Συγχαρητήρια!"
,
message
:
alertTitle
,
preferredStyle
:
.
alert
)
let
alert
=
UIAlertController
(
title
:
alertHeaderTitle
,
message
:
alertTitle
,
preferredStyle
:
.
alert
)
let
cancelButton
=
UIAlertAction
(
title
:
"Απόρριψη"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
...
...
@@ -4492,7 +4495,7 @@ public class swiftApi {
func
requestCallback
(
_
responseData
:
[
AnyHashable
:
Any
]?)
->
Void
{
if
let
responseDataDictionary
=
responseData
as?
[
String
:
AnyObject
]
{
if
((
responseDataDictionary
[
"status"
]
as?
Int
==
1
)
||
(
responseDataDictionary
[
"status"
]
as?
Int
==
4
)
||
(
responseDataDictionary
[
"status"
]
as?
Int
==
5
))
{
if
((
responseDataDictionary
[
"status"
]
as?
Int
==
1
)
||
(
responseDataDictionary
[
"status"
]
as?
Int
==
4
)
||
(
responseDataDictionary
[
"status"
]
as?
Int
==
5
)
||
(
responseDataDictionary
[
"status"
]
as?
Int
==
7
)
)
{
// let responseDataResult = (responseDataDictionary["result"] as? [String: Any] ?? [String: Any]())
let
tempResponse
=
SharingResponseModel
(
dictionary
:
responseDataDictionary
)
...
...
Please
register
or
login
to post a comment