.class Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;
.super Ljava/lang/Object;
.source "SnowPoiKeywordSearchPresenter.java"

# interfaces
.implements Lcom/amap/api/services/poisearch/PoiSearch$OnPoiSearchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "PoiSearchListener"
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;


# direct methods
.method private constructor <init>(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)V
    .locals 0

    .line 97
    iput-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$1;)V
    .locals 0

    .line 97
    invoke-direct {p0, p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;-><init>(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)V

    return-void
.end method


# virtual methods
.method public onPoiItemSearched(Lcom/amap/api/services/core/PoiItem;I)V
    .locals 0

    return-void
.end method

.method public onPoiSearched(Lcom/amap/api/services/poisearch/PoiResult;I)V
    .locals 1

    const/16 v0, 0x3e8

    if-ne p2, v0, :cond_3

    if-eqz p1, :cond_2

    .line 102
    invoke-virtual {p1}, Lcom/amap/api/services/poisearch/PoiResult;->getQuery()Lcom/amap/api/services/poisearch/PoiSearch$Query;

    move-result-object p2

    if-eqz p2, :cond_2

    .line 103
    invoke-virtual {p1}, Lcom/amap/api/services/poisearch/PoiResult;->getQuery()Lcom/amap/api/services/poisearch/PoiSearch$Query;

    move-result-object p2

    iget-object v0, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->c(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Lcom/amap/api/services/poisearch/PoiSearch$Query;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/amap/api/services/poisearch/PoiSearch$Query;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_4

    .line 105
    iget-object p2, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-virtual {p1}, Lcom/amap/api/services/poisearch/PoiResult;->getPois()Ljava/util/ArrayList;

    move-result-object v0

    invoke-static {p2, v0}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->a(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;Ljava/util/ArrayList;)Ljava/util/List;

    move-result-object p2

    .line 108
    invoke-virtual {p1}, Lcom/amap/api/services/poisearch/PoiResult;->getSearchSuggestionCitys()Ljava/util/List;

    move-result-object p1

    if-eqz p2, :cond_0

    .line 110
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 111
    iget-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->d(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Lcom/moji/base/MJPresenter$ICallback;

    move-result-object p1

    check-cast p1, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$SnowPKSearchCallback;

    invoke-interface {p1, p2}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$SnowPKSearchCallback;->onSearchResult(Ljava/util/List;)V

    goto :goto_0

    :cond_0
    if-eqz p1, :cond_1

    .line 112
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_1

    .line 113
    iget-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->e(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Ljava/lang/String;

    move-result-object p1

    const-string p2, "\u6ca1\u6709\u641c\u7d22\u5230\u9644\u8fd1\u5730\u70b9"

    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 114
    iget-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->f(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Lcom/moji/base/MJPresenter$ICallback;

    move-result-object p1

    check-cast p1, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$SnowPKSearchCallback;

    invoke-interface {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$SnowPKSearchCallback;->onSearchFail()V

    goto :goto_0

    .line 116
    :cond_1
    iget-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->e(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Ljava/lang/String;

    move-result-object p1

    const-string p2, "\u6ca1\u7ed3\u679c"

    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 120
    :cond_2
    iget-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->e(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Ljava/lang/String;

    move-result-object p1

    const-string p2, "\u7ed3\u679c\u4e3a\u7a7a"

    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 123
    :cond_3
    iget-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter$PoiSearchListener;->a:Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;

    invoke-static {p1}, Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;->e(Lcom/moji/mjsnowmodule/presenter/SnowPoiKeywordSearchPresenter;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    :goto_0
    return-void
.end method
