271 lines
7.2 KiB
Smali
271 lines
7.2 KiB
Smali
.class public Lcom/moji/user/homepage/presenter/CollectionPresenter;
|
|
.super Lcom/moji/newliveview/base/BasePresenter;
|
|
.source "CollectionPresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/user/homepage/presenter/CollectionPresenter$CollectionListCallback;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/base/BasePresenter<",
|
|
"Lcom/moji/user/homepage/presenter/CollectionPresenter$CollectionListCallback;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:I
|
|
|
|
.field private d:Z
|
|
|
|
.field private e:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/CollectionListResult$CollectionItem;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private f:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/user/homepage/presenter/CollectionPresenter$CollectionListCallback;)V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/base/BasePresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V
|
|
|
|
const/16 p1, 0x14
|
|
|
|
.line 24
|
|
iput p1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->c:I
|
|
|
|
.line 25
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->e:Ljava/util/ArrayList;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 26
|
|
iput p1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->f:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/CollectionPresenter;)Z
|
|
.locals 0
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CollectionPresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/CollectionPresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 21
|
|
iput-boolean p1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->d:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/homepage/presenter/CollectionPresenter;)I
|
|
.locals 2
|
|
|
|
.line 21
|
|
iget v0, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->f:I
|
|
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
iput v1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->f:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/user/homepage/presenter/CollectionPresenter;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 21
|
|
iget-object p0, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->e:Ljava/util/ArrayList;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/user/homepage/presenter/CollectionPresenter;)Z
|
|
.locals 0
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CollectionPresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/user/homepage/presenter/CollectionPresenter;)Z
|
|
.locals 0
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CollectionPresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/moji/user/homepage/presenter/CollectionPresenter;)Z
|
|
.locals 0
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/CollectionPresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/util/ArrayList;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/CollectionListResult$CollectionItem;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 82
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 83
|
|
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_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/http/snsforum/entity/CollectionListResult$CollectionItem;
|
|
|
|
.line 84
|
|
iget-wide v2, v2, Lcom/moji/http/snsforum/entity/CollectionListResult$CollectionItem;->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 86
|
|
:cond_0
|
|
new-instance v1, Lcom/moji/http/snsforum/DeleteCollectionListRequest;
|
|
|
|
invoke-direct {v1, v0}, Lcom/moji/http/snsforum/DeleteCollectionListRequest;-><init>(Ljava/util/ArrayList;)V
|
|
|
|
.line 87
|
|
new-instance v0, Lcom/moji/user/homepage/presenter/CollectionPresenter$2;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/moji/user/homepage/presenter/CollectionPresenter$2;-><init>(Lcom/moji/user/homepage/presenter/CollectionPresenter;Ljava/util/ArrayList;)V
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/http/snsforum/DeleteCollectionListRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 34
|
|
iput v0, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->f:I
|
|
|
|
.line 36
|
|
:cond_0
|
|
iget-boolean v1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->d:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 39
|
|
:cond_1
|
|
iput-boolean v0, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->d:Z
|
|
|
|
.line 40
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_KEEP_LOAD:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 41
|
|
new-instance v0, Lcom/moji/http/snsforum/CollectionListRequest;
|
|
|
|
iget v1, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->f:I
|
|
|
|
iget v2, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->c:I
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/moji/http/snsforum/CollectionListRequest;-><init>(II)V
|
|
|
|
.line 42
|
|
new-instance v1, Lcom/moji/user/homepage/presenter/CollectionPresenter$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/user/homepage/presenter/CollectionPresenter$1;-><init>(Lcom/moji/user/homepage/presenter/CollectionPresenter;Z)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/http/snsforum/CollectionListRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Ljava/util/ArrayList;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/CollectionListResult$CollectionItem;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 114
|
|
iget-object v0, p0, Lcom/moji/user/homepage/presenter/CollectionPresenter;->e:Ljava/util/ArrayList;
|
|
|
|
return-object v0
|
|
.end method
|