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-12 19:11:28 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
48324c1f84575d67576a97f86b513c3a3c29abb1
48324c1f
1 parent
b048d346
add logout function
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
48324c1
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
48324c1
...
...
@@ -822,6 +822,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
[
_db
executeUpdate
:
@"DROP TABLE requestVariables"
];
NSDictionary
*
successResponse
=
@{
@"result"
:
@"success"
,
@"status"
:
@1
};
NSLog
(
@"**************** WARPLY Logout *****************"
);
return
successResponse
;
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
48324c1
...
...
@@ -5356,4 +5356,26 @@ public class swiftApi {
}
public
func
logout
(
_
logoutCallback
:
@escaping
(
_
responseData
:
VerifyTicketResponseModel
?)
->
Void
)
->
Void
{
let
instanceOfMyApi
=
MyApi
()
let
responseData
=
instanceOfMyApi
.
logout
()
as
[
AnyHashable
:
Any
]?
if
let
responseDataDictionary
=
responseData
as?
[
String
:
Any
]
{
let
tempResponse
=
VerifyTicketResponseModel
(
dictionary
:
responseDataDictionary
)
if
(
tempResponse
.
getStatus
==
1
)
{
swiftApi
()
.
setUserTag
(
""
)
swiftApi
()
.
setUserNonTelco
(
false
)
}
logoutCallback
(
tempResponse
);
}
else
{
logoutCallback
(
nil
)
}
}
}
...
...
Please
register
or
login
to post a comment