t.smali
.class public final Lxq/t;
.super Ljava/lang/Object;
.source "Response.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public final a:Lokhttp3/Response;
.field public final b:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public final c:Lokhttp3/ResponseBody;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
.registers 4
.param p1 # Lokhttp3/Response;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
"TT;",
"Lokhttp3/ResponseBody;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lxq/t;->a:Lokhttp3/Response;
iput-object p2, p0, Lxq/t;->b:Ljava/lang/Object;
iput-object p3, p0, Lxq/t;->c:Lokhttp3/ResponseBody;
return-void
.end method
.method public static a(Ljava/lang/Object;Lokhttp3/Response;)Lxq/t;
.registers 4
.param p0 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lokhttp3/Response;",
")",
"Lxq/t<",
"TT;>;"
}
.end annotation
const-string v0, "rawResponse == null"
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-virtual {p1}, Lokhttp3/Response;->isSuccessful()Z
move-result v0
if-eqz v0, :cond_12
new-instance v0, Lxq/t;
const/4 v1, 0x0
invoke-direct {v0, p1, p0, v1}, Lxq/t;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
return-object v0
:cond_12
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "rawResponse must be successful response"
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static a(Lokhttp3/ResponseBody;Lokhttp3/Response;)Lxq/t;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lokhttp3/ResponseBody;",
"Lokhttp3/Response;",
")",
"Lxq/t<",
"TT;>;"
}
.end annotation
const-string v0, "body == null"
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "rawResponse == null"
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-virtual {p1}, Lokhttp3/Response;->isSuccessful()Z
move-result v0
if-nez v0, :cond_17
new-instance v0, Lxq/t;
const/4 v1, 0x0
invoke-direct {v0, p1, v1, p0}, Lxq/t;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
return-object v0
:cond_17
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "rawResponse should not be successful response"
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public a()Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
iget-object v0, p0, Lxq/t;->b:Ljava/lang/Object;
return-object v0
.end method
.method public b()I
.registers 2
iget-object v0, p0, Lxq/t;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->code()I
move-result v0
return v0
.end method
.method public c()Z
.registers 2
iget-object v0, p0, Lxq/t;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->isSuccessful()Z
move-result v0
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lxq/t;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->message()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lxq/t;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method