156 lines
3.7 KiB
Smali
156 lines
3.7 KiB
Smali
.class public final Lcom/moji/index/ArticlesPresenter;
|
|
.super Lcom/moji/base/MJPresenter;
|
|
.source "ArticlesPresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/base/MJPresenter<",
|
|
"Lcom/moji/index/ArticlesPresenter$ArticlesCallback;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private b:Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
|
|
.field private c:Z
|
|
|
|
.field private d:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/index/ArticlesPresenter$ArticlesCallback;)V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0, p1}, Lcom/moji/base/MJPresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V
|
|
|
|
.line 25
|
|
iput-object p1, p0, Lcom/moji/index/ArticlesPresenter;->b:Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/index/ArticlesPresenter;)Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
.locals 0
|
|
|
|
.line 16
|
|
iget-object p0, p0, Lcom/moji/index/ArticlesPresenter;->b:Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/index/ArticlesPresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 16
|
|
iput-boolean p1, p0, Lcom/moji/index/ArticlesPresenter;->d:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/index/ArticlesPresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 16
|
|
iput-boolean p1, p0, Lcom/moji/index/ArticlesPresenter;->c:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/String;I)V
|
|
.locals 2
|
|
|
|
.line 30
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 31
|
|
iget-boolean p1, p0, Lcom/moji/index/ArticlesPresenter;->c:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 32
|
|
iget-object p1, p0, Lcom/moji/index/ArticlesPresenter;->b:Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
|
|
invoke-interface {p1}, Lcom/moji/index/ArticlesPresenter$ArticlesCallback;->d()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/index/ArticlesPresenter;->b:Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
|
|
invoke-interface {p1}, Lcom/moji/index/ArticlesPresenter$ArticlesCallback;->e()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 38
|
|
:cond_1
|
|
iget-boolean v0, p0, Lcom/moji/index/ArticlesPresenter;->d:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 41
|
|
:cond_2
|
|
iget-boolean v0, p0, Lcom/moji/index/ArticlesPresenter;->c:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 42
|
|
iget-object v0, p0, Lcom/moji/index/ArticlesPresenter;->b:Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
|
|
|
|
invoke-interface {v0}, Lcom/moji/index/ArticlesPresenter$ArticlesCallback;->a()V
|
|
|
|
:cond_3
|
|
const/4 v0, 0x1
|
|
|
|
.line 44
|
|
iput-boolean v0, p0, Lcom/moji/index/ArticlesPresenter;->d:Z
|
|
|
|
.line 45
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v0
|
|
|
|
.line 46
|
|
new-instance v1, Lcom/moji/http/index/IndexArticleRquest;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget v0, v0, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/4 v0, -0x1
|
|
|
|
:goto_1
|
|
invoke-direct {v1, p1, v0, p2}, Lcom/moji/http/index/IndexArticleRquest;-><init>(Ljava/lang/String;II)V
|
|
|
|
new-instance p1, Lcom/moji/index/ArticlesPresenter$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/index/ArticlesPresenter$1;-><init>(Lcom/moji/index/ArticlesPresenter;)V
|
|
|
|
invoke-virtual {v1, p1}, Lcom/moji/http/index/IndexArticleRquest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|