223 lines
5.6 KiB
Smali
223 lines
5.6 KiB
Smali
.class public Lcom/moji/user/homepage/presenter/GetPraisePresenter;
|
|
.super Lcom/moji/newliveview/base/BasePresenter;
|
|
.source "GetPraisePresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/user/homepage/presenter/GetPraisePresenter$PraisePictureCallBack;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/newliveview/base/BasePresenter<",
|
|
"Lcom/moji/user/homepage/presenter/GetPraisePresenter$PraisePictureCallBack;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private c:J
|
|
|
|
.field private d:Ljava/lang/String;
|
|
|
|
.field private e:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lcom/moji/http/snsforum/entity/UserPicture;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private f:Z
|
|
|
|
.field private g:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/user/homepage/presenter/GetPraisePresenter$PraisePictureCallBack;J)V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/base/BasePresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V
|
|
|
|
.line 24
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->e:Ljava/util/ArrayList;
|
|
|
|
.line 30
|
|
iput-wide p2, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->c:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/GetPraisePresenter;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 19
|
|
iput-object p1, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->d:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/GetPraisePresenter;)Z
|
|
.locals 0
|
|
|
|
.line 19
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/user/homepage/presenter/GetPraisePresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 19
|
|
iput-boolean p1, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->f:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/homepage/presenter/GetPraisePresenter;)Ljava/util/ArrayList;
|
|
.locals 0
|
|
|
|
.line 19
|
|
iget-object p0, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->e:Ljava/util/ArrayList;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/user/homepage/presenter/GetPraisePresenter;Z)Z
|
|
.locals 0
|
|
|
|
.line 19
|
|
iput-boolean p1, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->g:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/user/homepage/presenter/GetPraisePresenter;)Z
|
|
.locals 0
|
|
|
|
.line 19
|
|
invoke-virtual {p0}, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->a()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Z)V
|
|
.locals 13
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 36
|
|
iput-object v0, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->d:Ljava/lang/String;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 37
|
|
iput-boolean v0, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->g:Z
|
|
|
|
.line 39
|
|
:cond_0
|
|
iget-boolean v0, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->f:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-boolean v0, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->g:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
.line 42
|
|
iput-boolean v0, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->f:Z
|
|
|
|
.line 43
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/account/data/AccountProvider;->d()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->c:J
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 44
|
|
new-instance v0, Lcom/moji/http/snsforum/PraisePictureRequest;
|
|
|
|
xor-int/lit8 v2, p1, 0x1
|
|
|
|
const/16 v3, 0x14
|
|
|
|
iget-object v4, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->d:Ljava/lang/String;
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/moji/http/snsforum/PraisePictureRequest;-><init>(IILjava/lang/String;J)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:cond_2
|
|
new-instance v0, Lcom/moji/http/snsforum/PraisePictureRequest;
|
|
|
|
xor-int/lit8 v8, p1, 0x1
|
|
|
|
const/16 v9, 0x14
|
|
|
|
iget-object v10, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->d:Ljava/lang/String;
|
|
|
|
iget-wide v11, p0, Lcom/moji/user/homepage/presenter/GetPraisePresenter;->c:J
|
|
|
|
move-object v7, v0
|
|
|
|
invoke-direct/range {v7 .. v12}, Lcom/moji/http/snsforum/PraisePictureRequest;-><init>(IILjava/lang/String;J)V
|
|
|
|
.line 48
|
|
:goto_0
|
|
new-instance v1, Lcom/moji/user/homepage/presenter/GetPraisePresenter$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/user/homepage/presenter/GetPraisePresenter$1;-><init>(Lcom/moji/user/homepage/presenter/GetPraisePresenter;Z)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/http/snsforum/PraisePictureRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|