x.smali
.class public final Lretrofit2/x;
.super Ljava/lang/Object;
.source "SourceFile"
# 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
.end field
.field public final c:Lokhttp3/ResponseBody;
# direct methods
.method public constructor <init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Response;",
"TT;",
"Lokhttp3/ResponseBody;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lretrofit2/x;->a:Lokhttp3/Response;
.line 3
iput-object p2, p0, Lretrofit2/x;->b:Ljava/lang/Object;
.line 4
iput-object p3, p0, Lretrofit2/x;->c:Lokhttp3/ResponseBody;
return-void
.end method
.method public static d(Ljava/lang/Object;Lokhttp3/Response;)Lretrofit2/x;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lokhttp3/Response;",
")",
"Lretrofit2/x<",
"TT;>;"
}
.end annotation
.line 1
invoke-virtual {p1}, Lokhttp3/Response;->isSuccessful()Z
move-result v0
if-eqz v0, :cond_d
.line 2
new-instance v0, Lretrofit2/x;
const/4 v1, 0x0
invoke-direct {v0, p1, p0, v1}, Lretrofit2/x;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lokhttp3/ResponseBody;)V
return-object v0
.line 3
:cond_d
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
# virtual methods
.method public final a()I
.registers 2
iget-object v0, p0, Lretrofit2/x;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->code()I
move-result v0
return v0
.end method
.method public final b()Z
.registers 2
iget-object v0, p0, Lretrofit2/x;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->isSuccessful()Z
move-result v0
return v0
.end method
.method public final c()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lretrofit2/x;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->message()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final toString()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lretrofit2/x;->a:Lokhttp3/Response;
invoke-virtual {v0}, Lokhttp3/Response;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method