You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
265 lines
8.1 KiB
265 lines
8.1 KiB
2 years ago
|
.class Lcom/viatech/cloud/CloudConfig$LoginUser$1;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "CloudConfig.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/viatech/util/AppServerTCPClient$Listener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/viatech/cloud/CloudConfig$LoginUser;->login(Landroid/os/Handler;Lcom/viatech/cloud/CloudConfig$LoginResultCallback;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
.field final synthetic val$cb:Lcom/viatech/cloud/CloudConfig$LoginResultCallback;
|
||
|
|
||
|
.field final synthetic val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/viatech/cloud/CloudConfig$LoginUser;Landroid/os/Handler;Lcom/viatech/cloud/CloudConfig$LoginResultCallback;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 127
|
||
|
iput-object p1, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
iput-object p2, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
iput-object p3, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$cb:Lcom/viatech/cloud/CloudConfig$LoginResultCallback;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onConnect(Ljava/lang/String;)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 129
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
iput-object p1, v0, Lcom/viatech/cloud/CloudConfig$LoginUser;->userid:Ljava/lang/String;
|
||
|
|
||
|
.line 130
|
||
|
const-string v0, "Vpai_LoginUser"
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "onConnect "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
iget-object v2, v2, Lcom/viatech/cloud/CloudConfig$LoginUser;->userid:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, ", uiHandler = "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 131
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 132
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
new-instance v1, Lcom/viatech/cloud/CloudConfig$LoginUser$1$1;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/viatech/cloud/CloudConfig$LoginUser$1$1;-><init>(Lcom/viatech/cloud/CloudConfig$LoginUser$1;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
.line 139
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/viatech/cloud/CloudConfig$LoginUser;->save()V
|
||
|
|
||
|
.line 140
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onDisconnect(ILjava/lang/String;)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 147
|
||
|
const-string v0, "Vpai_LoginUser"
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "onDisconnect "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, ", "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 149
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->access$002(Lcom/viatech/cloud/CloudConfig$LoginUser;Lcom/viatech/util/AppServerTCPClient;)Lcom/viatech/util/AppServerTCPClient;
|
||
|
|
||
|
.line 150
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 151
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
new-instance v1, Lcom/viatech/cloud/CloudConfig$LoginUser$1$2;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/viatech/cloud/CloudConfig$LoginUser$1$2;-><init>(Lcom/viatech/cloud/CloudConfig$LoginUser$1;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
.line 157
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onError(Ljava/lang/Exception;)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 160
|
||
|
const-string v0, "Vpai_LoginUser"
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "onError "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 162
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->this$0:Lcom/viatech/cloud/CloudConfig$LoginUser;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-static {v0, v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->access$002(Lcom/viatech/cloud/CloudConfig$LoginUser;Lcom/viatech/util/AppServerTCPClient;)Lcom/viatech/util/AppServerTCPClient;
|
||
|
|
||
|
.line 163
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 164
|
||
|
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig$LoginUser$1;->val$uiHandler:Landroid/os/Handler;
|
||
|
|
||
|
new-instance v1, Lcom/viatech/cloud/CloudConfig$LoginUser$1$3;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/viatech/cloud/CloudConfig$LoginUser$1$3;-><init>(Lcom/viatech/cloud/CloudConfig$LoginUser$1;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
.line 170
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onMessage(Ljava/lang/String;)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 143
|
||
|
const-string v0, "Vpai_LoginUser"
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "onMessage "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 144
|
||
|
return-void
|
||
|
.end method
|