103 lines
3.3 KiB
Smali
103 lines
3.3 KiB
Smali
.class public final Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;
|
|
.super Lt/u/b/k;
|
|
.source "WebSocket.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/websocket/WebSocket$connect$1;->onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lt/u/b/k;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $text:Ljava/lang/String;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/utilities/websocket/WebSocket$connect$1;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/utilities/websocket/WebSocket$connect$1;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->this$0:Lcom/discord/utilities/websocket/WebSocket$connect$1;
|
|
|
|
iput-object p2, p0, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->$text:Ljava/lang/String;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lt/u/b/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->invoke()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()V
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->this$0:Lcom/discord/utilities/websocket/WebSocket$connect$1;
|
|
|
|
iget-object v0, v0, Lcom/discord/utilities/websocket/WebSocket$connect$1;->this$0:Lcom/discord/utilities/websocket/WebSocket;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/websocket/WebSocket;->getOnMessage()Lkotlin/jvm/functions/Function1;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/google/gson/stream/JsonReader;
|
|
|
|
new-instance v2, Ljava/io/StringReader;
|
|
|
|
iget-object v3, p0, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->$text:Ljava/lang/String;
|
|
|
|
invoke-direct {v2, v3}, Ljava/io/StringReader;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {v1, v2}, Lcom/google/gson/stream/JsonReader;-><init>(Ljava/io/Reader;)V
|
|
|
|
invoke-interface {v0, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->this$0:Lcom/discord/utilities/websocket/WebSocket$connect$1;
|
|
|
|
iget-object v2, p0, Lcom/discord/utilities/websocket/WebSocket$connect$1$onMessage$1;->$text:Ljava/lang/String;
|
|
|
|
const-string v3, "Unable to parse string message."
|
|
|
|
invoke-static {v1, v0, v3, v2}, Lcom/discord/utilities/websocket/WebSocket$connect$1;->access$handleError(Lcom/discord/utilities/websocket/WebSocket$connect$1;Ljava/lang/Exception;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|