apkfuckery/com.discord/smali_classes2/f0/g$a$a.smali

119 lines
2.8 KiB
Smali

.class public Lf0/g$a$a;
.super Ljava/lang/Object;
.source "CompletableFutureCallAdapterFactory.java"
# interfaces
.implements Lf0/f;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lf0/g$a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lf0/f<",
"TR;>;"
}
.end annotation
.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation
# instance fields
.field public final a:Ljava/util/concurrent/CompletableFuture;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/CompletableFuture<",
"TR;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lf0/g$a;Ljava/util/concurrent/CompletableFuture;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/CompletableFuture<",
"TR;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lf0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
return-void
.end method
# virtual methods
.method public a(Lf0/d;Ljava/lang/Throwable;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf0/d<",
"TR;>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
iget-object p1, p0, Lf0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
invoke-virtual {p1, p2}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z
return-void
.end method
.method public b(Lf0/d;Lf0/z;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf0/d<",
"TR;>;",
"Lf0/z<",
"TR;>;)V"
}
.end annotation
invoke-virtual {p2}, Lf0/z;->a()Z
move-result p1
if-eqz p1, :cond_0
iget-object p1, p0, Lf0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
iget-object p2, p2, Lf0/z;->b:Ljava/lang/Object;
invoke-virtual {p1, p2}, Ljava/util/concurrent/CompletableFuture;->complete(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
iget-object p1, p0, Lf0/g$a$a;->a:Ljava/util/concurrent/CompletableFuture;
new-instance v0, Lretrofit2/HttpException;
invoke-direct {v0, p2}, Lretrofit2/HttpException;-><init>(Lf0/z;)V
invoke-virtual {p1, v0}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z
:goto_0
return-void
.end method