161 lines
4.5 KiB
Smali
161 lines
4.5 KiB
Smali
.class Lcom/moji/redleaves/RedLeavesDetailActivity$4;
|
|
.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/RLUnSubscribeResult;",
|
|
">;"
|
|
}
|
|
.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 195
|
|
iput-object p1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$4;->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/RLUnSubscribeResult;)V
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 199
|
|
sget p1, Lcom/moji/redleaves/R$string;->cancel_subscribe_fail:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 202
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/http/redleaves/entity/RLUnSubscribeResult;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 203
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$4;->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;->subscribe:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
.line 204
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$4;->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, 0x1
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setSelected(Z)V
|
|
|
|
.line 205
|
|
new-instance p1, Lcom/moji/http/redleaves/entity/Spot;
|
|
|
|
invoke-direct {p1}, Lcom/moji/http/redleaves/entity/Spot;-><init>()V
|
|
|
|
.line 206
|
|
iput v0, p1, Lcom/moji/http/redleaves/entity/Spot;->sub_state:I
|
|
|
|
.line 207
|
|
iget-object v1, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$4;->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 208
|
|
iget-object v0, p0, Lcom/moji/redleaves/RedLeavesDetailActivity$4;->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 209
|
|
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, 0x0
|
|
|
|
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 211
|
|
:cond_1
|
|
invoke-virtual {p1}, Lcom/moji/http/redleaves/entity/RLUnSubscribeResult;->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 217
|
|
sget p1, Lcom/moji/redleaves/R$string;->cancel_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 195
|
|
check-cast p1, Lcom/moji/http/redleaves/entity/RLUnSubscribeResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/redleaves/RedLeavesDetailActivity$4;->a(Lcom/moji/http/redleaves/entity/RLUnSubscribeResult;)V
|
|
|
|
return-void
|
|
.end method
|