Response.smali
.class public Lcom/tradplus/ads/volley/Response;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tradplus/ads/volley/Response$ErrorListener;,
Lcom/tradplus/ads/volley/Response$Listener;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public final cacheEntry:Lcom/tradplus/ads/volley/Cache$Entry;
.field public final error:Lcom/tradplus/ads/volley/VolleyError;
.field public intermediate:Z
.field public final result:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/tradplus/ads/volley/VolleyError;)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/tradplus/ads/volley/Response;->intermediate:Z
const/4 v0, 0x0
iput-object v0, p0, Lcom/tradplus/ads/volley/Response;->result:Ljava/lang/Object;
iput-object v0, p0, Lcom/tradplus/ads/volley/Response;->cacheEntry:Lcom/tradplus/ads/volley/Cache$Entry;
iput-object p1, p0, Lcom/tradplus/ads/volley/Response;->error:Lcom/tradplus/ads/volley/VolleyError;
return-void
.end method
.method private constructor <init>(Ljava/lang/Object;Lcom/tradplus/ads/volley/Cache$Entry;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lcom/tradplus/ads/volley/Cache$Entry;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/tradplus/ads/volley/Response;->intermediate:Z
iput-object p1, p0, Lcom/tradplus/ads/volley/Response;->result:Ljava/lang/Object;
iput-object p2, p0, Lcom/tradplus/ads/volley/Response;->cacheEntry:Lcom/tradplus/ads/volley/Cache$Entry;
const/4 p1, 0x0
iput-object p1, p0, Lcom/tradplus/ads/volley/Response;->error:Lcom/tradplus/ads/volley/VolleyError;
return-void
.end method
.method public static error(Lcom/tradplus/ads/volley/VolleyError;)Lcom/tradplus/ads/volley/Response;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/tradplus/ads/volley/VolleyError;",
")",
"Lcom/tradplus/ads/volley/Response<",
"TT;>;"
}
.end annotation
new-instance v0, Lcom/tradplus/ads/volley/Response;
invoke-direct {v0, p0}, Lcom/tradplus/ads/volley/Response;-><init>(Lcom/tradplus/ads/volley/VolleyError;)V
return-object v0
.end method
.method public static success(Ljava/lang/Object;Lcom/tradplus/ads/volley/Cache$Entry;)Lcom/tradplus/ads/volley/Response;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/tradplus/ads/volley/Cache$Entry;",
")",
"Lcom/tradplus/ads/volley/Response<",
"TT;>;"
}
.end annotation
new-instance v0, Lcom/tradplus/ads/volley/Response;
invoke-direct {v0, p0, p1}, Lcom/tradplus/ads/volley/Response;-><init>(Ljava/lang/Object;Lcom/tradplus/ads/volley/Cache$Entry;)V
return-object v0
.end method
# virtual methods
.method public isSuccess()Z
.registers 2
iget-object v0, p0, Lcom/tradplus/ads/volley/Response;->error:Lcom/tradplus/ads/volley/VolleyError;
if-nez v0, :cond_6
const/4 v0, 0x1
goto :goto_7
:cond_6
const/4 v0, 0x0
:goto_7
return v0
.end method