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-11-09 13:39:16 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e68af0196a5ede762f1efac6154efec0fed0fe46
e68af019
1 parent
b19169fa
fix getCoupons callback
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
120 additions
and
57 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 @
e68af01
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
e68af01
...
...
@@ -675,8 +675,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get Campaigns Personalized %@"
,
error
);
}
else
{
NSLog
(
@"Error at get Campaigns Personalized %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1101,8 +1103,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
else
{
NSLog
(
@"Error at token %@"
,
error
);
failure
(
error
);
}
NSLog
(
@"Error at token %@"
,
error
);
}
}];
}
...
...
@@ -1155,8 +1159,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
else
{
NSLog
(
@"Error at token %@"
,
error
);
failure
(
error
);
}
NSLog
(
@"Error at token %@"
,
error
);
}
}];
}
...
...
@@ -1211,8 +1217,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
// }];
}
else
{
NSLog
(
@"Error at token %@"
,
error
);
failure
(
error
);
}
NSLog
(
@"Error at token %@"
,
error
);
}
}];
}
...
...
@@ -1249,8 +1257,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at change password %@"
,
error
);
}
else
{
NSLog
(
@"Error at change password %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1292,8 +1302,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
else
{
NSLog
(
@"Error at get profile %@"
,
error
);
failure
(
error
);
}
NSLog
(
@"Error at get profile %@"
,
error
);
}
}];
}
...
...
@@ -1353,8 +1365,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
else
{
NSLog
(
@"Error at post Event %@"
,
error
);
failure
(
error
);
}
NSLog
(
@"Error at post Event %@"
,
error
);
}
}];
}
...
...
@@ -1459,8 +1473,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at edit profile %@"
,
error
);
}
else
{
NSLog
(
@"Error at edit profile %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1500,8 +1516,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get pacing details %@"
,
error
);
}
else
{
NSLog
(
@"Error at get pacing details %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1541,8 +1559,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at set pacing details %@"
,
error
);
}
else
{
NSLog
(
@"Error at set pacing details %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1619,8 +1639,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at consumer Integration %@"
,
error
);
}
else
{
NSLog
(
@"Error at consumer Integration %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1656,8 +1678,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at change profile image %@"
,
error
);
}
else
{
NSLog
(
@"Error at change profile image %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1693,8 +1717,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at add card %@"
,
error
);
}
else
{
NSLog
(
@"Error at add card %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1730,8 +1756,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get cards %@"
,
error
);
}
else
{
NSLog
(
@"Error at get cards %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1767,8 +1795,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get delete card %@"
,
error
);
}
else
{
NSLog
(
@"Error at get delete card %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1894,8 +1924,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get coupons %@"
,
error
);
}
else
{
NSLog
(
@"Error at get coupons %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1931,8 +1963,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get transaction history %@"
,
error
);
}
else
{
NSLog
(
@"Error at get transaction history %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -1968,8 +2002,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get points history %@"
,
error
);
}
else
{
NSLog
(
@"Error at get points history %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2009,8 +2045,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get Sharing History %@"
,
error
);
}
else
{
NSLog
(
@"Error at get Sharing History %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2046,8 +2084,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at add address %@"
,
error
);
}
else
{
NSLog
(
@"Error at add address %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2083,8 +2123,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get address %@"
,
error
);
}
else
{
NSLog
(
@"Error at get address %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2165,8 +2207,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at edit address %@"
,
error
);
}
else
{
NSLog
(
@"Error at edit address %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2202,8 +2246,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at delete address %@"
,
error
);
}
else
{
NSLog
(
@"Error at delete address %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2239,8 +2285,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at redeem coupons %@"
,
error
);
}
else
{
NSLog
(
@"Error at redeem coupons %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2499,8 +2547,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at redeem coupon sets %@"
,
error
);
}
else
{
NSLog
(
@"Error at redeem coupon sets %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2559,8 +2609,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at redeem coupon sets %@"
,
error
);
}
else
{
NSLog
(
@"Error at redeem coupon sets %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2600,8 +2652,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at cosmote Coupon Sharing %@"
,
error
);
}
else
{
NSLog
(
@"Error at cosmote Coupon Sharing %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2641,8 +2695,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get cosmote sharing %@"
,
error
);
}
else
{
NSLog
(
@"Error at get cosmote sharing %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2682,8 +2738,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at cosmote retrieve sharing %@"
,
error
);
}
else
{
NSLog
(
@"Error at cosmote retrieve sharing %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2742,8 +2800,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at submit Order %@"
,
error
);
}
else
{
NSLog
(
@"Error at submit Order %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
@@ -2779,8 +2839,10 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
NSLog
(
@"Error at token %@"
,
error
);
}];
}
NSLog
(
@"Error at get coupon sets %@"
,
error
);
}
else
{
NSLog
(
@"Error at get coupon sets %@"
,
error
);
failure
(
error
);
}
}
}];
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
e68af01
...
...
@@ -690,6 +690,7 @@ public class swiftApi {
instanceOfMyApi
.
getCouponsWithSuccessBlock
(
couponsCallback
,
failureBlock
:
(
couponsFailureCallback
))
}
}
else
{
getCouponsCallback
(
nil
)
}
}
...
...
Please
register
or
login
to post a comment