Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2024-10-16 10:47:48 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b444967a3105fd7550cf5739b21978e19285ae9e
b444967a
1 parent
2a23b49c
event name fixes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
b444967
...
...
@@ -3119,20 +3119,20 @@ public class WarplyManager {
if
(
jobjUnifiedResponse
!=
null
&&
jobjUnifiedResponse
.
has
(
"status"
)
&&
jobjUnifiedResponse
.
optString
(
"status"
,
"2"
).
equals
(
"1"
))
{
LoyaltySDKDynatraceEventModel
dynatraceEvent
=
new
LoyaltySDKDynatraceEventModel
();
dynatraceEvent
.
setEventName
(
"custom_success_create_unified_
coupons
"
);
dynatraceEvent
.
setEventName
(
"custom_success_create_unified_
loyalty
"
);
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
dynatraceEvent
));
RefreshUnifiedCouponsEventModel
couponsRefreshed
=
new
RefreshUnifiedCouponsEventModel
();
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
couponsRefreshed
));
}
else
{
LoyaltySDKDynatraceEventModel
dynatraceEvent
=
new
LoyaltySDKDynatraceEventModel
();
dynatraceEvent
.
setEventName
(
"custom_error_create_unified_
coupons
"
);
dynatraceEvent
.
setEventName
(
"custom_error_create_unified_
loyalty
"
);
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
dynatraceEvent
));
receiver
.
onFailure
(
2
);
}
}
else
{
LoyaltySDKDynatraceEventModel
dynatraceEvent
=
new
LoyaltySDKDynatraceEventModel
();
dynatraceEvent
.
setEventName
(
"custom_error_create_unified_
coupons
"
);
dynatraceEvent
.
setEventName
(
"custom_error_create_unified_
loyalty
"
);
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
dynatraceEvent
));
receiver
.
onFailure
(
response
.
code
());
}
...
...
@@ -3141,7 +3141,7 @@ public class WarplyManager {
@Override
public
void
onFailure
(
Call
<
ResponseBody
>
call
,
Throwable
t
)
{
LoyaltySDKDynatraceEventModel
dynatraceEvent
=
new
LoyaltySDKDynatraceEventModel
();
dynatraceEvent
.
setEventName
(
"custom_error_create_unified_
coupons
"
);
dynatraceEvent
.
setEventName
(
"custom_error_create_unified_
loyalty
"
);
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
dynatraceEvent
));
receiver
.
onFailure
(
2
);
}
...
...
Please
register
or
login
to post a comment