161 lines
4.5 KiB
Smali
161 lines
4.5 KiB
Smali
.class Lcom/moji/redleaves/RedLeavesDetailActivity$5;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "RedLeavesDetailActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/redleaves/RedLeavesDetailActivity;->b()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/requestcore/MJBaseHttpCallback<",
|
|
"Lcom/moji/http/redleaves/entity/RLSubscribeResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/redleaves/RedLeavesDetailActivity;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/redleaves/RedLeavesDetailActivity;)V
|
|
.locals 0
|
|
|
|
.line 221
|
|
iput-object p1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$5;->a:Lcom/moji/redleaves/RedLeavesDetailActivity;
|
|
|
|
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Lcom/moji/http/redleaves/entity/RLSubscribeResult;)V
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 225
|
|
sget p1, Lcom/moji/redleaves/R$string;->subscribe_fail:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 228
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/http/redleaves/entity/RLSubscribeResult;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 229
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$5;->a:Lcom/moji/redleaves/RedLeavesDetailActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesDetailActivity;->f(Lcom/moji/redleaves/RedLeavesDetailActivity;)Landroid/widget/TextView;
|
|
|
|
move-result-object p1
|
|
|
|
sget v0, Lcom/moji/redleaves/R$string;->cancel_subscribe:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
.line 230
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$5;->a:Lcom/moji/redleaves/RedLeavesDetailActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesDetailActivity;->f(Lcom/moji/redleaves/RedLeavesDetailActivity;)Landroid/widget/TextView;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setSelected(Z)V
|
|
|
|
.line 231
|
|
new-instance p1, Lcom/moji/http/redleaves/entity/Spot;
|
|
|
|
invoke-direct {p1}, Lcom/moji/http/redleaves/entity/Spot;-><init>()V
|
|
|
|
.line 232
|
|
iput v0, p1, Lcom/moji/http/redleaves/entity/Spot;->sub_state:I
|
|
|
|
.line 233
|
|
iget-object v1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$5;->a:Lcom/moji/redleaves/RedLeavesDetailActivity;
|
|
|
|
invoke-static {v1}, Lcom/moji/redleaves/RedLeavesDetailActivity;->a(Lcom/moji/redleaves/RedLeavesDetailActivity;)Lcom/moji/http/redleaves/entity/RLDetailResponse;
|
|
|
|
move-result-object v1
|
|
|
|
iput v0, v1, Lcom/moji/http/redleaves/entity/RLDetailResponse;->sub_state:I
|
|
|
|
.line 234
|
|
iget-object v0, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$5;->a:Lcom/moji/redleaves/RedLeavesDetailActivity;
|
|
|
|
invoke-static {v0}, Lcom/moji/redleaves/RedLeavesDetailActivity;->c(Lcom/moji/redleaves/RedLeavesDetailActivity;)J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int v0, v0
|
|
|
|
iput v0, p1, Lcom/moji/http/redleaves/entity/Spot;->attraction_id:I
|
|
|
|
.line 235
|
|
invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/moji/redleaves/event/SubscribeEvent;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v1, v2, p1}, Lcom/moji/redleaves/event/SubscribeEvent;-><init>(ZLcom/moji/http/redleaves/entity/Spot;)V
|
|
|
|
invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 237
|
|
:cond_1
|
|
invoke-virtual {p1}, Lcom/moji/http/redleaves/entity/RLSubscribeResult;->getDesc()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 0
|
|
|
|
.line 243
|
|
sget p1, Lcom/moji/redleaves/R$string;->subscribe_fail:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic onSuccess(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 221
|
|
check-cast p1, Lcom/moji/http/redleaves/entity/RLSubscribeResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/redleaves/RedLeavesDetailActivity$5;->a(Lcom/moji/http/redleaves/entity/RLSubscribeResult;)V
|
|
|
|
return-void
|
|
.end method
|