SocketClient$2.smali
.class Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;
.super Ljava/lang/Object;
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;->sendMessage(Ljava/lang/String;Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;
.field final synthetic val$callBack:Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;
.field final synthetic val$message:Ljava/lang/String;
# direct methods
.method constructor <init>(Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;Ljava/lang/String;Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;)V
.registers 4
iput-object p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;
iput-object p2, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->val$message:Ljava/lang/String;
iput-object p3, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->val$callBack:Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 4
:try_start_0
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;
# getter for: Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;->mSocketConnection:Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketConnection;
invoke-static {v0}, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;->access$000(Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient;)Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketConnection;
move-result-object v0
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->val$message:Ljava/lang/String;
invoke-virtual {v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketConnection;->sendMessage(Ljava/lang/String;)V
:try_end_b
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_b} :catch_c
:goto_b
return-void
:catch_c
move-exception v0
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->val$callBack:Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;
if-eqz v1, :cond_19
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/socket/data/SocketClient$2;->val$callBack:Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;
const/16 v2, 0x66
invoke-interface {v1, v2, v0}, Lcom/cmcm/xiaobao/phone/smarthome/socket/transmission/OnSendCallBack;->onFailed(ILjava/lang/Exception;)V
goto :goto_b
:cond_19
const-string/jumbo v1, "XPhoneSocket"
const-string/jumbo v2, "sendMessage error"
invoke-static {v1, v2, v0}, Lcom/cmcm/xiaobao/phone/commons/log/LogUtil;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_b
.end method