525 lines
14 KiB
Smali
525 lines
14 KiB
Smali
.class public Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;
|
|
.super Lcom/moji/newliveview/base/BasePresenter;
|
|
.source "CurrentMothPicturePresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$CurrentMothPictureCallBack;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/base/BasePresenter<",
|
|
"Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$CurrentMothPictureCallBack;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:I
|
|
|
|
.field d:Lcom/moji/newliveview/detail/DeletePictureListEvent;
|
|
|
|
.field private e:Ljava/lang/String;
|
|
|
|
.field private f:J
|
|
|
|
.field private g:Ljava/lang/String;
|
|
|
|
.field private h:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private i:Z
|
|
|
|
.field private j:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$CurrentMothPictureCallBack;Ljava/lang/String;J)V
|
|
.locals 0
|
|
|
|
.line 36
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/base/BasePresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V
|
|
|
|
const/16 p1, 0x14
|
|
|
|
.line 30
|
|
iput p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->c:I
|
|
|
|
.line 31
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
.line 37
|
|
iput-object p2, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->e:Ljava/lang/String;
|
|
|
|
.line 38
|
|
iput-wide p3, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->f:J
|
|
|
|
.line 39
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/account/data/AccountProvider;->d()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iget-wide p2, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->f:J
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
.line 40
|
|
iput-wide p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->f:J
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 25
|
|
iput-object p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->g:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;)Z
|
|
.locals 0
|
|
|
|
.line 25
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 25
|
|
iput-boolean p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->i:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private b()Ljava/util/ArrayList;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 136
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 137
|
|
iget-object v1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v1, ""
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 141
|
|
:goto_0
|
|
iget-object v3, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v2, v3, :cond_2
|
|
|
|
.line 142
|
|
iget-object v3, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;
|
|
|
|
.line 143
|
|
iget-wide v4, v3, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->create_time:J
|
|
|
|
const-string v6, "yyyy-MM-dd"
|
|
|
|
invoke-static {v4, v5, v6}, Lcom/moji/tool/DateFormatTool;->a(JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
.line 144
|
|
invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 145
|
|
new-instance v1, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;
|
|
|
|
invoke-direct {v1}, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;-><init>()V
|
|
|
|
.line 146
|
|
iput-object v4, v1, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->picture_url:Ljava/lang/String;
|
|
|
|
.line 147
|
|
iget-wide v5, v3, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->create_time:J
|
|
|
|
iput-wide v5, v1, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->create_time:J
|
|
|
|
const/4 v5, 0x1
|
|
|
|
.line 148
|
|
iput-boolean v5, v1, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->isLocal:Z
|
|
|
|
.line 149
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 151
|
|
:cond_1
|
|
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
move-object v1, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 25
|
|
iget-object p0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 25
|
|
iput-boolean p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->j:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 25
|
|
invoke-direct {p0}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->b()Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;)Z
|
|
.locals 0
|
|
|
|
.line 25
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;)Z
|
|
.locals 0
|
|
|
|
.line 25
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/moji/newliveview/detail/DeletePictureListEvent;)V
|
|
.locals 8
|
|
|
|
.line 158
|
|
iget-object v0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->d:Lcom/moji/newliveview/detail/DeletePictureListEvent;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 162
|
|
:cond_0
|
|
iget-object p1, p1, Lcom/moji/newliveview/detail/DeletePictureListEvent;->a:Ljava/util/ArrayList;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/newliveview/detail/DeletePictureListEvent$DelItemEvent;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 164
|
|
iget-object v1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_1
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;
|
|
|
|
.line 165
|
|
iget-wide v3, v2, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->picture_id:J
|
|
|
|
iget-wide v5, p1, Lcom/moji/newliveview/detail/DeletePictureListEvent$DelItemEvent;->a:J
|
|
|
|
cmp-long v7, v3, v5
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
move-object v0, v2
|
|
|
|
.line 170
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 171
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->a()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 174
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->b:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
check-cast p1, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$CurrentMothPictureCallBack;
|
|
|
|
invoke-direct {p0}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->b()Ljava/util/ArrayList;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->h:Ljava/util/ArrayList;
|
|
|
|
invoke-interface {p1, v0, v1}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$CurrentMothPictureCallBack;->fillData(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/ArrayList;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 94
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 99
|
|
:cond_0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 100
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;
|
|
|
|
.line 101
|
|
iget-wide v2, v2, Lcom/moji/http/snsforum/entity/UserPhotoListResult$PicItem;->picture_id:J
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 103
|
|
:cond_1
|
|
new-instance v1, Lcom/moji/http/snsforum/DeletePictureRequest;
|
|
|
|
invoke-direct {v1, v0}, Lcom/moji/http/snsforum/DeletePictureRequest;-><init>(Ljava/util/ArrayList;)V
|
|
|
|
.line 104
|
|
new-instance v0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$2;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$2;-><init>(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;Ljava/util/ArrayList;)V
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/http/snsforum/DeletePictureRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
|
|
.line 95
|
|
:cond_2
|
|
:goto_1
|
|
sget p1, Lcom/moji/newliveview/R$string;->select_delete_pic:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 8
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 46
|
|
iput-object v0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->g:Ljava/lang/String;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 47
|
|
iput-boolean v0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->j:Z
|
|
|
|
.line 49
|
|
:cond_0
|
|
iget-boolean v0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->i:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->j:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
.line 52
|
|
iput-boolean v0, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->i:Z
|
|
|
|
.line 53
|
|
new-instance v0, Lcom/moji/http/snsforum/CurrentMothPictureRequest;
|
|
|
|
iget-object v2, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->e:Ljava/lang/String;
|
|
|
|
iget-wide v3, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->f:J
|
|
|
|
xor-int/lit8 v5, p1, 0x1
|
|
|
|
iget v6, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->c:I
|
|
|
|
iget-object v7, p0, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;->g:Ljava/lang/String;
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v7}, Lcom/moji/http/snsforum/CurrentMothPictureRequest;-><init>(Ljava/lang/String;JIILjava/lang/String;)V
|
|
|
|
.line 54
|
|
new-instance v1, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter$1;-><init>(Lcom/moji/user/homepage/presenter/CurrentMothPicturePresenter;Z)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/http/snsforum/CurrentMothPictureRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|