224 lines
6.0 KiB
Smali
224 lines
6.0 KiB
Smali
.class public Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;
|
|
.super Lcom/moji/base/MJPresenter;
|
|
.source "RedLeavesLiveViewPresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/base/MJPresenter<",
|
|
"Lcom/moji/redleaves/callback/RedLeavesLiveViewCallback;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/redleaves/callback/RedLeavesLiveViewCallback;)V
|
|
.locals 0
|
|
|
|
.line 28
|
|
invoke-direct {p0, p1}, Lcom/moji/base/MJPresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
.locals 0
|
|
|
|
.line 25
|
|
iget-object p0, p0, Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a(Lcom/moji/opevent/model/OperationEvent;)Lcom/moji/redleaves/data/LiveViewData;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 43
|
|
iget-object v1, p1, Lcom/moji/opevent/model/OperationEvent;->m:Ljava/util/ArrayList;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v1, p1, Lcom/moji/opevent/model/OperationEvent;->m:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:cond_0
|
|
iget-object p1, p1, Lcom/moji/opevent/model/OperationEvent;->m:Ljava/util/ArrayList;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean$EntranceResListBean;
|
|
|
|
.line 47
|
|
iget-object v2, p1, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean$EntranceResListBean;->entrance_name:Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
return-object v0
|
|
|
|
.line 50
|
|
:cond_1
|
|
iget-object p1, p1, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean$EntranceResListBean;->entrance_name:Ljava/lang/String;
|
|
|
|
const-string v2, "\\+"
|
|
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 51
|
|
array-length v2, p1
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-ge v2, v3, :cond_2
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
const/4 v2, 0x1
|
|
|
|
.line 56
|
|
:try_start_0
|
|
aget-object v2, p1, v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v2
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 60
|
|
new-instance v0, Lcom/moji/redleaves/data/LiveViewData;
|
|
|
|
invoke-direct {v0}, Lcom/moji/redleaves/data/LiveViewData;-><init>()V
|
|
|
|
.line 61
|
|
aget-object p1, p1, v1
|
|
|
|
iput-object p1, v0, Lcom/moji/redleaves/data/LiveViewData;->b:Ljava/lang/String;
|
|
|
|
.line 62
|
|
iput-wide v2, v0, Lcom/moji/redleaves/data/LiveViewData;->a:J
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
return-object v0
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
.locals 0
|
|
|
|
.line 25
|
|
iget-object p0, p0, Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
.locals 0
|
|
|
|
.line 25
|
|
iget-object p0, p0, Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lcom/moji/redleaves/data/LiveViewData;
|
|
.locals 5
|
|
|
|
.line 32
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
.line 36
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/opevent/OperationEventManager;->a()Lcom/moji/opevent/OperationEventManager;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/moji/opevent/OperationEventPosition;
|
|
|
|
iget v0, v0, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
sget-object v3, Lcom/moji/opevent/model/OperationEventPage;->P_RED_LEAVES:Lcom/moji/opevent/model/OperationEventPage;
|
|
|
|
sget-object v4, Lcom/moji/opevent/model/OperationEventRegion;->R_RED_LEAVES_LIVE_VIEW:Lcom/moji/opevent/model/OperationEventRegion;
|
|
|
|
invoke-direct {v2, v0, v3, v4}, Lcom/moji/opevent/OperationEventPosition;-><init>(ILcom/moji/opevent/model/OperationEventPage;Lcom/moji/opevent/model/OperationEventRegion;)V
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/opevent/OperationEventManager;->a(Lcom/moji/opevent/OperationEventPosition;)Lcom/moji/opevent/model/OperationEvent;
|
|
|
|
move-result-object v0
|
|
|
|
.line 39
|
|
invoke-direct {p0, v0}, Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;->a(Lcom/moji/opevent/model/OperationEvent;)Lcom/moji/redleaves/data/LiveViewData;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(J)V
|
|
.locals 7
|
|
|
|
.line 67
|
|
new-instance v6, Lcom/moji/http/snsforum/PromotionHotPictureRequest;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, v6
|
|
|
|
move-wide v1, p1
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/moji/http/snsforum/PromotionHotPictureRequest;-><init>(JIILjava/lang/String;)V
|
|
|
|
.line 68
|
|
new-instance p1, Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter$1;-><init>(Lcom/moji/redleaves/presenter/RedLeavesLiveViewPresenter;)V
|
|
|
|
invoke-virtual {v6, p1}, Lcom/moji/http/snsforum/PromotionHotPictureRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|