apkfuckery/com.discord/smali/com/discord/gateway/GatewaySocket$callConnect$1.smali

125 lines
3.7 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/gateway/GatewaySocket$callConnect$1;
2020-04-11 15:34:05 +00:00
.super Lz/u/b/k;
2019-07-24 11:27:29 +00:00
.source "GatewaySocket.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/gateway/GatewaySocket;->callConnect(J)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-11 15:34:05 +00:00
"Lz/u/b/k;",
2019-07-24 11:27:29 +00:00
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic $channelId:J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Lcom/discord/gateway/GatewaySocket;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Lcom/discord/gateway/GatewaySocket;J)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Lcom/discord/gateway/GatewaySocket$callConnect$1;->this$0:Lcom/discord/gateway/GatewaySocket;
iput-wide p2, p0, Lcom/discord/gateway/GatewaySocket$callConnect$1;->$channelId:J
const/4 p1, 0x0
2020-04-11 15:34:05 +00:00
invoke-direct {p0, p1}, Lz/u/b/k;-><init>(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public bridge synthetic invoke()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 1
invoke-virtual {p0}, Lcom/discord/gateway/GatewaySocket$callConnect$1;->invoke()V
2019-12-06 03:29:40 +00:00
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final invoke()V
.locals 12
sget-object v0, Lcom/discord/gateway/GatewaySocket;->Companion:Lcom/discord/gateway/GatewaySocket$Companion;
iget-object v1, p0, Lcom/discord/gateway/GatewaySocket$callConnect$1;->this$0:Lcom/discord/gateway/GatewaySocket;
invoke-static {v1}, Lcom/discord/gateway/GatewaySocket;->access$getLogger$p(Lcom/discord/gateway/GatewaySocket;)Lcom/discord/utilities/logging/Logger;
move-result-object v1
2019-12-06 03:29:40 +00:00
const-string v2, "Sending call connect sync on channel id: "
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
invoke-static {v2}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
iget-wide v3, p0, Lcom/discord/gateway/GatewaySocket$callConnect$1;->$channelId:J
invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const/16 v3, 0x2e
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
const/4 v3, 0x0
const/4 v4, 0x2
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lcom/discord/gateway/GatewaySocket$Companion;->log$default(Lcom/discord/gateway/GatewaySocket$Companion;Lcom/discord/utilities/logging/Logger;Ljava/lang/String;ZILjava/lang/Object;)V
iget-object v6, p0, Lcom/discord/gateway/GatewaySocket$callConnect$1;->this$0:Lcom/discord/gateway/GatewaySocket;
new-instance v7, Lcom/discord/gateway/io/Outgoing;
2020-02-06 22:18:40 +00:00
sget-object v0, Lcom/discord/gateway/opcodes/Opcode;->CALL_CONNECT:Lcom/discord/gateway/opcodes/Opcode;
2019-07-24 11:27:29 +00:00
2020-02-06 22:18:40 +00:00
new-instance v1, Lcom/discord/gateway/io/OutgoingPayload$CallConnect;
2019-07-24 11:27:29 +00:00
2020-02-06 22:18:40 +00:00
iget-wide v2, p0, Lcom/discord/gateway/GatewaySocket$callConnect$1;->$channelId:J
2019-07-24 11:27:29 +00:00
2020-02-06 22:18:40 +00:00
invoke-direct {v1, v2, v3}, Lcom/discord/gateway/io/OutgoingPayload$CallConnect;-><init>(J)V
2019-07-24 11:27:29 +00:00
2020-02-06 22:18:40 +00:00
invoke-direct {v7, v0, v1}, Lcom/discord/gateway/io/Outgoing;-><init>(Lcom/discord/gateway/opcodes/Opcode;Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x6
const/4 v11, 0x0
invoke-static/range {v6 .. v11}, Lcom/discord/gateway/GatewaySocket;->send$default(Lcom/discord/gateway/GatewaySocket;Lcom/discord/gateway/io/Outgoing;ZLcom/google/gson/Gson;ILjava/lang/Object;)V
return-void
.end method