.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$3; .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;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)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; .field final synthetic val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; # direct methods .method public constructor (Lcom/ea/eadp/pushnotification/services/AndroidPushService;Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; .line 259 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onComplete(Lcom/ea/eadp/http/models/HttpResponse;)V .locals 6 .line 263 invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I move-result v0 .line 264 invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String; move-result-object v1 const/16 v2, 0xc8 const-string v3, "response: %s" const/4 v4, 0x0 const-string v5, "PushManager" if-lt v0, v2, :cond_1 const/16 v2, 0x12c if-ge v0, v2, :cond_1 const-string p1, "Registration request successful!" new-array v2, v4, [Ljava/lang/Object; .line 267 invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V filled-new-array {v1}, [Ljava/lang/Object; move-result-object p1 .line 268 invoke-static {v3, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 new-array v2, v4, [Ljava/lang/Object; invoke-static {v5, 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$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; .line 282 invoke-virtual {p1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->getRegistrationIdentifier()Ljava/lang/String; move-result-object p1 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 const-string v2, "Device registration with server complete. Registered id: %s" invoke-static {v2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 new-array v2, v4, [Ljava/lang/Object; invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; .line 285 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_0 iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; .line 287 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;->onRegistrationSuccess(ILjava/lang/String;)V :cond_0 return-void .line 272 :cond_1 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getMessage()Ljava/lang/String; move-result-object p1 filled-new-array {v2, p1}, [Ljava/lang/Object; move-result-object p1 const-string v2, "Registration request failed! Status: %s, Message: %s" invoke-static {v2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 new-array v2, v4, [Ljava/lang/Object; .line 273 invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V filled-new-array {v1}, [Ljava/lang/Object; move-result-object v1 .line 274 invoke-static {v3, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object v1 new-array v2, v4, [Ljava/lang/Object; invoke-static {v5, 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$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; .line 276 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_2 iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; .line 278 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 {v1, v0, p1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V :cond_2 return-void .end method