apkfuckery/com.discord/smali/com/discord/gateway/GatewayDiscovery$discoverGa...

93 lines
2.7 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/gateway/GatewayDiscovery$discoverGatewayUrl$1;
2020-02-20 19:33:18 +00:00
.super Lw/u/b/k;
2019-07-24 11:27:29 +00:00
.source "GatewayDiscovery.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/gateway/GatewayDiscovery;->discoverGatewayUrl(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)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-02-20 19:33:18 +00:00
"Lw/u/b/k;",
2019-07-24 11:27:29 +00:00
"Lkotlin/jvm/functions/Function1<",
"Ljava/lang/Throwable;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic $onFailure:Lkotlin/jvm/functions/Function1;
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/GatewayDiscovery;
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/GatewayDiscovery;Lkotlin/jvm/functions/Function1;)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Lcom/discord/gateway/GatewayDiscovery$discoverGatewayUrl$1;->this$0:Lcom/discord/gateway/GatewayDiscovery;
iput-object p2, p0, Lcom/discord/gateway/GatewayDiscovery$discoverGatewayUrl$1;->$onFailure:Lkotlin/jvm/functions/Function1;
const/4 p1, 0x1
2020-02-20 19:33:18 +00:00
invoke-direct {p0, p1}, Lw/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;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 0
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Lcom/discord/gateway/GatewayDiscovery$discoverGatewayUrl$1;->invoke(Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
2019-07-24 11:27:29 +00:00
return-object p1
.end method
.method public final invoke(Ljava/lang/Throwable;)V
.locals 2
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lcom/discord/gateway/GatewayDiscovery$discoverGatewayUrl$1;->this$0:Lcom/discord/gateway/GatewayDiscovery;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v1, v0}, Lcom/discord/gateway/GatewayDiscovery;->access$setGatewayUrl$p(Lcom/discord/gateway/GatewayDiscovery;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v1, Lcom/discord/gateway/GatewayDiscovery$Cache;->INSTANCE:Lcom/discord/gateway/GatewayDiscovery$Cache;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v0}, Lcom/discord/gateway/GatewayDiscovery$Cache;->setGatewayUrl(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Lcom/discord/gateway/GatewayDiscovery$discoverGatewayUrl$1;->$onFailure:Lkotlin/jvm/functions/Function1;
invoke-interface {v0, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "throwable"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method