117 lines
3.1 KiB
Smali
117 lines
3.1 KiB
Smali
.class Lcom/moji/redleaves/viewholder/SceneViewHolder$2;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "SceneViewHolder.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/redleaves/viewholder/SceneViewHolder;->a(Lcom/moji/http/redleaves/entity/Spot;)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/http/redleaves/entity/Spot;
|
|
|
|
.field final synthetic b:Lcom/moji/redleaves/viewholder/SceneViewHolder;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/redleaves/viewholder/SceneViewHolder;Lcom/moji/http/redleaves/entity/Spot;)V
|
|
.locals 0
|
|
|
|
.line 151
|
|
iput-object p1, p0, Lcom/moji/redleaves/viewholder/SceneViewHolder$2;->b:Lcom/moji/redleaves/viewholder/SceneViewHolder;
|
|
|
|
iput-object p2, p0, Lcom/moji/redleaves/viewholder/SceneViewHolder$2;->a:Lcom/moji/http/redleaves/entity/Spot;
|
|
|
|
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 155
|
|
sget p1, Lcom/moji/redleaves/R$string;->subscribe_fail:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
|
|
.line 158
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/http/redleaves/entity/RLSubscribeResult;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 159
|
|
invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/moji/redleaves/event/SubscribeEvent;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iget-object v2, p0, Lcom/moji/redleaves/viewholder/SceneViewHolder$2;->a:Lcom/moji/http/redleaves/entity/Spot;
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/moji/redleaves/event/SubscribeEvent;-><init>(ZLcom/moji/http/redleaves/entity/Spot;)V
|
|
|
|
invoke-virtual {p1, v0}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 161
|
|
: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 167
|
|
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 151
|
|
check-cast p1, Lcom/moji/http/redleaves/entity/RLSubscribeResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/redleaves/viewholder/SceneViewHolder$2;->a(Lcom/moji/http/redleaves/entity/RLSubscribeResult;)V
|
|
|
|
return-void
|
|
.end method
|