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
Vasilis
2022-02-02 16:35:42 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b7c9f15cb0cf40032451e77f9b87a3b31bbf5da
5b7c9f15
1 parent
92f7ba71
logout call added
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
WarplySDKFrameworkIOS/Warply/Warply.h
WarplySDKFrameworkIOS/Warply/Warply.m
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
WarplySDKFrameworkIOS/Warply/Warply.h
View file @
5b7c9f1
...
...
@@ -301,6 +301,8 @@ WL_VERSION_INTERFACE()
-
(
void
)
loginWithSuccessBlock
:(
NSString
*
)
id
andPassword
:(
NSString
*
)
password
andLoginType
:(
NSString
*
)
loginType
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
NSDictionary
*
)
logout
;
-
(
void
)
webAuthorizeWithSuccessBlock
:(
NSDictionary
*
)
contextResponse
andId
:(
NSString
*
)
id
andLoginType
:(
NSString
*
)
loginType
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
tokenWithSuccessBlock
:(
NSDictionary
*
)
contextResponse
andClientId
:(
NSString
*
)
clientId
andClientSecret
:(
NSString
*
)
clientSecret
andLoginType
:(
NSString
*
)
loginType
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:(
void
(
^
)(
NSError
*
error
))
failure
;
...
...
WarplySDKFrameworkIOS/Warply/Warply.m
View file @
5b7c9f1
...
...
@@ -576,6 +576,14 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}];
}
-
(
NSDictionary
*
)
logout
{
[
_db
executeUpdate
:
@"DROP TABLE requestVariables"
];
NSDictionary
*
successResponse
=
@{
@"result"
:
@"success"
,
@"status"
:
@1
};
return
successResponse
;
}
-
(
void
)
webAuthorizeWithSuccessBlock
:
(
NSDictionary
*
)
contextResponse
andId
:
(
NSString
*
)
id
andLoginType
:
(
NSString
*
)
loginType
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
{
if
([[
contextResponse
objectForKey
:
@"status"
]
isEqual
:
@1
])
{
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
5b7c9f1
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
View file @
5b7c9f1
...
...
@@ -365,6 +365,12 @@ NSString *LANG;
return
resp
;
}
-
(
NSDictionary
*
)
logout
{
NSDictionary
*
response
=
[
NSDictionary
alloc
];
response
=
[[
Warply
sharedService
]
logout
];
return
response
;
}
-
(
NSDictionary
*
)
register
:
(
NSString
*
)
id
password
:
(
NSString
*
)
password
name
:
(
NSString
*
)
name
email
:
(
NSString
*
)
email
segmentation
:
(
NSNumber
*
)
segmentation
newsletter
:
(
NSNumber
*
)
newsletter
{
__block
NSDictionary
*
resp
=
[
NSDictionary
alloc
];
__block
BOOL
isRunLoopNested
=
NO
;
...
...
Please
register
or
login
to post a comment