Files
rr3-apk/smali_classes2/com/ea/eadp/pushnotification/services/AndroidPushService$4.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

176 lines
5.5 KiB
Smali

.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/eadp/http/models/HttpRequestListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->sendTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 320
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onComplete(Lcom/ea/eadp/http/models/HttpResponse;)V
.locals 6
.line 324
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v0
const/16 v1, 0xc8
const-string v2, "response: %s"
const/4 v3, 0x0
const-string v4, "PushManager"
if-lt v0, v1, :cond_0
const/16 v1, 0x12c
if-ge v0, v1, :cond_0
const-string v1, "Tracking request successful!"
new-array v5, v3, [Ljava/lang/Object;
.line 327
invoke-static {v4, v1, v5}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 328
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
new-array v2, v3, [Ljava/lang/Object;
invoke-static {v4, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 330
invoke-static {v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v1
if-eqz v1, :cond_1
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 332
invoke-static {v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v1
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object p1
invoke-interface {v1, v0, p1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onTrackingSuccess(ILjava/lang/String;)V
goto :goto_0
.line 337
:cond_0
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getMessage()Ljava/lang/String;
move-result-object v5
filled-new-array {v1, v5}, [Ljava/lang/Object;
move-result-object v1
const-string v5, "Tracking request failed! Status: %s, Message: %s"
invoke-static {v5, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
new-array v5, v3, [Ljava/lang/Object;
.line 338
invoke-static {v4, v1, v5}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 339
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
invoke-static {v2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array v2, v3, [Ljava/lang/Object;
invoke-static {v4, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 341
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object p1
if-eqz p1, :cond_1
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 343
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object p1
invoke-interface {p1, v0, v1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
:cond_1
:goto_0
return-void
.end method