apkfuckery/com.discord/smali/b/a/a/f.smali
2019-05-04 04:59:52 +02:00

183 lines
4.2 KiB
Smali

.class public final Lb/a/a/f;
.super Ljava/lang/Object;
.source "Result.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final error:Ljava/lang/Throwable;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final response:Lb/m;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lb/m<",
"TT;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
# direct methods
.method private constructor <init>(Lb/m;Ljava/lang/Throwable;)V
.locals 0
.param p1 # Lb/m;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/Throwable;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lb/m<",
"TT;>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lb/a/a/f;->response:Lb/m;
iput-object p2, p0, Lb/a/a/f;->error:Ljava/lang/Throwable;
return-void
.end method
.method public static D(Ljava/lang/Throwable;)Lb/a/a/f;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Throwable;",
")",
"Lb/a/a/f<",
"TT;>;"
}
.end annotation
if-eqz p0, :cond_0
new-instance v0, Lb/a/a/f;
const/4 v1, 0x0
invoke-direct {v0, v1, p0}, Lb/a/a/f;-><init>(Lb/m;Ljava/lang/Throwable;)V
return-object v0
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
const-string v0, "error == null"
invoke-direct {p0, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static d(Lb/m;)Lb/a/a/f;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lb/m<",
"TT;>;)",
"Lb/a/a/f<",
"TT;>;"
}
.end annotation
if-eqz p0, :cond_0
new-instance v0, Lb/a/a/f;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lb/a/a/f;-><init>(Lb/m;Ljava/lang/Throwable;)V
return-object v0
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
const-string v0, "response == null"
invoke-direct {p0, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public final toString()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lb/a/a/f;->error:Ljava/lang/Throwable;
if-eqz v0, :cond_0
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Result{isError=true, error=\""
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lb/a/a/f;->error:Ljava/lang/Throwable;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "\"}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Result{isError=false, response="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lb/a/a/f;->response:Lb/m;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method