RedpacketResponse.smali
.class public Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;
.super Ljava/lang/Object;
.source "RedpacketResponse.java"
# instance fields
.field private records:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketDetailRecord;",
">;"
}
.end annotation
.end field
.field private red:Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
.field private selfStatus:I
.field private statusRecv:I
.field private userList:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 30
const/4 v0, -0x1
iput v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->statusRecv:I
.line 43
iput v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->selfStatus:I
return-void
.end method
# virtual methods
.method public getRed()Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
.registers 2
.line 46
iget-object v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->red:Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
return-object v0
.end method
.method public isReceived()Z
.registers 8
.line 60
iget-object v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->userList:Ljava/util/ArrayList;
const/4 v1, 0x0
if-eqz v0, :cond_b
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-nez v0, :cond_17
:cond_b
iget-object v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->records:Ljava/util/ArrayList;
if-eqz v0, :cond_9c
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-nez v0, :cond_17
goto/16 :goto_9c
.line 64
:cond_17
iget-object v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->red:Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;->getStatusInt()I
move-result v0
const/4 v2, 0x1
if-eq v0, v2, :cond_2c
iget-object v0, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->red:Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;->getStatusInt()I
move-result v0
const/4 v3, 0x2
if-ne v0, v3, :cond_2a
goto :goto_2c
:cond_2a
const/4 v0, 0x0
goto :goto_2d
:cond_2c
:goto_2c
const/4 v0, 0x1
.line 65
.local v0, "finish":Z
:goto_2d
if-eqz v0, :cond_37
.line 67
iget v3, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->selfStatus:I
if-ne v3, v2, :cond_34
.line 68
return v2
.line 70
:cond_34
if-nez v3, :cond_37
.line 71
return v1
.line 75
:cond_37
iget-object v3, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->userList:Ljava/util/ArrayList;
if-eqz v3, :cond_67
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-lez v3, :cond_67
.line 76
iget-object v3, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->userList:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_47
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_67
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Integer;
.line 77
.local v4, "uid":Ljava/lang/Integer;
invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
move-result v5
sget v6, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
invoke-static {v6}, Lim/tpelyyftgw/messenger/UserConfig;->getInstance(I)Lim/tpelyyftgw/messenger/UserConfig;
move-result-object v6
iget v6, v6, Lim/tpelyyftgw/messenger/UserConfig;->clientUserId:I
if-ne v5, v6, :cond_66
.line 78
if-eqz v0, :cond_65
.line 79
iput v2, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->selfStatus:I
.line 81
:cond_65
return v2
.line 83
.end local v4 # "uid":Ljava/lang/Integer;
:cond_66
goto :goto_47
.line 86
:cond_67
iget-object v3, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->records:Ljava/util/ArrayList;
if-eqz v3, :cond_97
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
move-result v3
if-lez v3, :cond_97
.line 87
iget-object v3, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->records:Ljava/util/ArrayList;
invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_77
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_97
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketDetailRecord;
.line 88
.local v4, "record":Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketDetailRecord;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketDetailRecord;->getUserIdInt()I
move-result v5
sget v6, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
invoke-static {v6}, Lim/tpelyyftgw/messenger/UserConfig;->getInstance(I)Lim/tpelyyftgw/messenger/UserConfig;
move-result-object v6
iget v6, v6, Lim/tpelyyftgw/messenger/UserConfig;->clientUserId:I
if-ne v5, v6, :cond_96
.line 89
if-eqz v0, :cond_95
.line 90
iput v2, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->selfStatus:I
.line 92
:cond_95
return v2
.line 94
.end local v4 # "record":Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketDetailRecord;
:cond_96
goto :goto_77
.line 97
:cond_97
if-eqz v0, :cond_9b
.line 98
iput v1, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->selfStatus:I
.line 100
:cond_9b
return v1
.line 61
.end local v0 # "finish":Z
:cond_9c
:goto_9c
return v1
.end method
.method public setRed(Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;)V
.registers 2
.param p1, "red" # Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
.line 50
iput-object p1, p0, Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketResponse;->red:Lim/tpelyyftgw/ui/hui/packet/bean/RedpacketBean;
.line 51
return-void
.end method