162 lines
3.1 KiB
Smali
162 lines
3.1 KiB
Smali
.class public final Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;
|
|
.super Lw/u/b/k;
|
|
.source "RetryWithDelay.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/restapi/utils/RetryWithDelay;->restRetry(Lrx/Observable;JLjava/lang/Integer;Ljava/lang/Integer;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lw/u/b/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Ljava/lang/Throwable;",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;
|
|
|
|
invoke-direct {v0}, Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;->INSTANCE:Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p0, v0}, Lw/u/b/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/restapi/utils/RetryWithDelay$restRetry$1;->invoke(Ljava/lang/Throwable;)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Ljava/lang/Throwable;)Z
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
instance-of v0, p1, Ld0/h;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ld0/h;
|
|
|
|
invoke-virtual {v0}, Ld0/h;->a()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0}, Ld0/h;->b()Ld0/o;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Ld0/o;->a:Lokhttp3/Response;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Response;->u()La0/y;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, La0/y;->c:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v3, "GET"
|
|
|
|
invoke-static {v0, v3}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const/16 v0, 0x191
|
|
|
|
if-eq v2, v0, :cond_1
|
|
|
|
const/16 v0, 0x193
|
|
|
|
if-eq v2, v0, :cond_1
|
|
|
|
const/16 v0, 0x1ad
|
|
|
|
if-ne v2, v0, :cond_3
|
|
|
|
:cond_1
|
|
return v1
|
|
|
|
:cond_2
|
|
instance-of v0, p1, Ljava/util/concurrent/TimeoutException;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
instance-of p1, p1, Ljava/io/IOException;
|
|
|
|
return p1
|
|
|
|
:cond_4
|
|
const-string p1, "throwable"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|