apkfuckery/com.discord/smali/f/c/a/i1.smali
2020-07-08 16:44:49 +00:00

178 lines
3.8 KiB
Smali

.class public Lf/c/a/i1;
.super Ljava/lang/Object;
.source "RequestHandler.java"
# interfaces
.implements Lf/c/a/s0;
# instance fields
.field public a:Lf/c/a/l0;
.field public b:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lf/c/a/r0;",
">;"
}
.end annotation
.end field
.field public c:Lf/c/a/q0;
# direct methods
.method public constructor <init>(Lf/c/a/r0;)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {}, Lf/c/a/v;->a()Lf/c/a/q0;
move-result-object v0
iput-object v0, p0, Lf/c/a/i1;->c:Lf/c/a/q0;
new-instance v0, Lf/c/a/l0;
const-string v1, "RequestHandler"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lf/c/a/l0;-><init>(Ljava/lang/String;Z)V
iput-object v0, p0, Lf/c/a/i1;->a:Lf/c/a/l0;
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lf/c/a/i1;->b:Ljava/lang/ref/WeakReference;
return-void
.end method
# virtual methods
.method public final a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 2
invoke-virtual {p1}, Lf/c/a/p;->b()Ljava/lang/String;
move-result-object v0
invoke-static {p2, p3}, Lf/c/a/v1;->k(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object p2
const/4 p3, 0x2
new-array p3, p3, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object v0, p3, v1
const/4 v0, 0x1
aput-object p2, p3, v0
const-string p2, "%s. (%s) Will retry later"
invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
iget-object p3, p0, Lf/c/a/i1;->c:Lf/c/a/q0;
new-array v0, v1, [Ljava/lang/Object;
check-cast p3, Lf/c/a/x0;
invoke-virtual {p3, p2, v0}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-static {p1}, Lf/c/a/j1;->a(Lf/c/a/p;)Lf/c/a/j1;
move-result-object p3
iput-object p2, p3, Lf/c/a/j1;->a:Ljava/lang/String;
iget-object p2, p0, Lf/c/a/i1;->b:Ljava/lang/ref/WeakReference;
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lf/c/a/r0;
if-nez p2, :cond_0
return-void
:cond_0
invoke-interface {p2, p3, p1}, Lf/c/a/r0;->f(Lf/c/a/j1;Lf/c/a/p;)V
return-void
.end method
.method public final b(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 2
invoke-virtual {p1}, Lf/c/a/p;->b()Ljava/lang/String;
move-result-object v0
invoke-static {p2, p3}, Lf/c/a/v1;->k(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object p2
const/4 p3, 0x2
new-array p3, p3, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object v0, p3, v1
const/4 v0, 0x1
aput-object p2, p3, v0
const-string p2, "%s. (%s)"
invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
iget-object p3, p0, Lf/c/a/i1;->c:Lf/c/a/q0;
new-array v0, v1, [Ljava/lang/Object;
check-cast p3, Lf/c/a/x0;
invoke-virtual {p3, p2, v0}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-static {p1}, Lf/c/a/j1;->a(Lf/c/a/p;)Lf/c/a/j1;
move-result-object p1
iput-object p2, p1, Lf/c/a/j1;->a:Ljava/lang/String;
iget-object p2, p0, Lf/c/a/i1;->b:Ljava/lang/ref/WeakReference;
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lf/c/a/r0;
if-nez p2, :cond_0
return-void
:cond_0
invoke-interface {p2, p1}, Lf/c/a/r0;->c(Lf/c/a/j1;)V
return-void
.end method