apkfuckery/com.discord/smali_classes2/g0/l$a.smali

125 lines
2.8 KiB
Smali
Raw Normal View History

2020-04-17 17:35:24 +00:00
.class public final Lg0/l$a;
.super Lg0/l;
2019-07-24 11:27:29 +00:00
.source "ParameterHandler.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-04-17 17:35:24 +00:00
value = Lg0/l;
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2020-02-20 19:33:18 +00:00
name = "a"
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
2020-04-17 17:35:24 +00:00
"Lg0/l<",
2019-07-24 11:27:29 +00:00
"TT;>;"
}
.end annotation
# instance fields
2020-04-17 17:35:24 +00:00
.field public final a:Lg0/e;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-17 17:35:24 +00:00
"Lg0/e<",
2019-07-24 11:27:29 +00:00
"TT;",
"Lokhttp3/RequestBody;",
">;"
}
.end annotation
.end field
# direct methods
2020-04-17 17:35:24 +00:00
.method public constructor <init>(Lg0/e;)V
2019-07-24 11:27:29 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-04-17 17:35:24 +00:00
"Lg0/e<",
2019-07-24 11:27:29 +00:00
"TT;",
"Lokhttp3/RequestBody;",
">;)V"
}
.end annotation
2020-04-17 17:35:24 +00:00
invoke-direct {p0}, Lg0/l;-><init>()V
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
iput-object p1, p0, Lg0/l$a;->a:Lg0/e;
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2020-04-17 17:35:24 +00:00
.method public a(Lg0/n;Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-04-17 17:35:24 +00:00
"Lg0/n;",
2019-07-24 11:27:29 +00:00
"TT;)V"
}
.end annotation
2020-02-20 19:33:18 +00:00
if-eqz p2, :cond_0
2019-07-24 11:27:29 +00:00
:try_start_0
2020-04-17 17:35:24 +00:00
iget-object v0, p0, Lg0/l$a;->a:Lg0/e;
2019-07-24 11:27:29 +00:00
2020-04-17 17:35:24 +00:00
invoke-interface {v0, p2}, Lg0/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object v0
check-cast v0, Lokhttp3/RequestBody;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
2020-04-17 17:35:24 +00:00
iput-object v0, p1, Lg0/n;->j:Lokhttp3/RequestBody;
2019-07-24 11:27:29 +00:00
return-void
:catch_0
move-exception p1
new-instance v0, Ljava/lang/RuntimeException;
new-instance v1, Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
2019-07-24 11:27:29 +00:00
const-string v2, "Unable to convert "
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p2, " to RequestBody"
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {v0, p2, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
2020-02-20 19:33:18 +00:00
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Body parameter value must not be null."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
2019-07-24 11:27:29 +00:00
.end method