.class public Lcom/moji/location/poi/MJPoiItem;
.super Ljava/lang/Object;
.source "MJPoiItem.java"


# instance fields
.field protected final a:Lcom/moji/location/geo/MJLatLonPoint;

.field protected final b:Ljava/lang/String;

.field protected final c:Ljava/lang/String;

.field private d:Ljava/lang/String;

.field private e:Ljava/lang/String;

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Ljava/lang/String;

.field private i:I

.field private j:Lcom/moji/location/geo/MJLatLonPoint;

.field private k:Lcom/moji/location/geo/MJLatLonPoint;

.field private l:Ljava/lang/String;

.field private m:Ljava/lang/String;

.field private n:Ljava/lang/String;

.field private o:Ljava/lang/String;

.field private p:Ljava/lang/String;

.field private q:Ljava/lang/String;

.field private r:Ljava/lang/String;

.field private s:Z

.field private t:Lcom/moji/location/poi/MJIndoorData;

.field private u:Ljava/lang/String;

.field private v:Ljava/lang/String;

.field private w:Ljava/lang/String;

.field private x:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/location/poi/MJSubPoiItem;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Ljava/lang/String;Lcom/moji/location/geo/MJLatLonPoint;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

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

    const-string v0, ""

    .line 19
    iput-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->h:Ljava/lang/String;

    const/4 v0, -0x1

    .line 20
    iput v0, p0, Lcom/moji/location/poi/MJPoiItem;->i:I

    .line 38
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->x:Ljava/util/List;

    .line 41
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    .line 42
    iput-object p2, p0, Lcom/moji/location/poi/MJPoiItem;->a:Lcom/moji/location/geo/MJLatLonPoint;

    .line 43
    iput-object p3, p0, Lcom/moji/location/poi/MJPoiItem;->b:Ljava/lang/String;

    .line 44
    iput-object p4, p0, Lcom/moji/location/poi/MJPoiItem;->c:Ljava/lang/String;

    return-void
.end method

.method public static a(Lcom/amap/api/services/core/PoiItem;)Lcom/moji/location/poi/MJPoiItem;
    .locals 7

    if-eqz p0, :cond_5

    .line 255
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v0

    if-nez v0, :cond_0

    goto/16 :goto_1

    .line 258
    :cond_0
    new-instance v0, Lcom/moji/location/poi/MJPoiItem;

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getPoiId()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/moji/location/geo/MJLatLonPoint;

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v3

    invoke-virtual {v3}, Lcom/amap/api/services/core/LatLonPoint;->getLatitude()D

    move-result-wide v3

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getLatLonPoint()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v5

    invoke-virtual {v5}, Lcom/amap/api/services/core/LatLonPoint;->getLongitude()D

    move-result-wide v5

    invoke-direct {v2, v3, v4, v5, v6}, Lcom/moji/location/geo/MJLatLonPoint;-><init>(DD)V

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getSnippet()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/moji/location/poi/MJPoiItem;-><init>(Ljava/lang/String;Lcom/moji/location/geo/MJLatLonPoint;Ljava/lang/String;Ljava/lang/String;)V

    .line 259
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getBusinessArea()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->a(Ljava/lang/String;)V

    .line 260
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getAdName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->b(Ljava/lang/String;)V

    .line 261
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getCityName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->c(Ljava/lang/String;)V

    .line 262
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getProvinceName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->d(Ljava/lang/String;)V

    .line 263
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getTypeDes()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->e(Ljava/lang/String;)V

    .line 264
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getTel()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->f(Ljava/lang/String;)V

    .line 265
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getAdCode()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->g(Ljava/lang/String;)V

    .line 266
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getDistance()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->a(I)V

    .line 267
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getCityCode()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->h(Ljava/lang/String;)V

    .line 268
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getEnter()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 269
    new-instance v1, Lcom/moji/location/geo/MJLatLonPoint;

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getEnter()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v2

    invoke-virtual {v2}, Lcom/amap/api/services/core/LatLonPoint;->getLatitude()D

    move-result-wide v2

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getEnter()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v4

    invoke-virtual {v4}, Lcom/amap/api/services/core/LatLonPoint;->getLongitude()D

    move-result-wide v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/moji/location/geo/MJLatLonPoint;-><init>(DD)V

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->a(Lcom/moji/location/geo/MJLatLonPoint;)V

    .line 271
    :cond_1
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getExit()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 272
    new-instance v1, Lcom/moji/location/geo/MJLatLonPoint;

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getExit()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v2

    invoke-virtual {v2}, Lcom/amap/api/services/core/LatLonPoint;->getLatitude()D

    move-result-wide v2

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getExit()Lcom/amap/api/services/core/LatLonPoint;

    move-result-object v4

    invoke-virtual {v4}, Lcom/amap/api/services/core/LatLonPoint;->getLongitude()D

    move-result-wide v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/moji/location/geo/MJLatLonPoint;-><init>(DD)V

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->b(Lcom/moji/location/geo/MJLatLonPoint;)V

    .line 274
    :cond_2
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getWebsite()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->i(Ljava/lang/String;)V

    .line 275
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getPostcode()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->j(Ljava/lang/String;)V

    .line 276
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getEmail()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->k(Ljava/lang/String;)V

    .line 277
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getDirection()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->l(Ljava/lang/String;)V

    .line 278
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->isIndoorMap()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->a(Z)V

    .line 279
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getProvinceCode()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->m(Ljava/lang/String;)V

    .line 280
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getParkingType()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->n(Ljava/lang/String;)V

    .line 281
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getSubPois()Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_4

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getSubPois()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_4

    .line 282
    new-instance v1, Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getSubPois()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    .line 283
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getSubPois()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/amap/api/services/poisearch/SubPoiItem;

    .line 284
    invoke-static {v3}, Lcom/moji/location/poi/MJSubPoiItem;->a(Lcom/amap/api/services/poisearch/SubPoiItem;)Lcom/moji/location/poi/MJSubPoiItem;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 286
    :cond_3
    invoke-virtual {v0, v1}, Lcom/moji/location/poi/MJPoiItem;->a(Ljava/util/List;)V

    .line 288
    :cond_4
    invoke-virtual {p0}, Lcom/amap/api/services/core/PoiItem;->getIndoorData()Lcom/amap/api/services/poisearch/IndoorData;

    move-result-object p0

    invoke-static {p0}, Lcom/moji/location/poi/MJIndoorData;->a(Lcom/amap/api/services/poisearch/IndoorData;)Lcom/moji/location/poi/MJIndoorData;

    move-result-object p0

    invoke-virtual {v0, p0}, Lcom/moji/location/poi/MJPoiItem;->a(Lcom/moji/location/poi/MJIndoorData;)V

    return-object v0

    :cond_5
    :goto_1
    const/4 p0, 0x0

    return-object p0
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    .line 56
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->r:Ljava/lang/String;

    return-object v0
.end method

.method public a(I)V
    .locals 0

    .line 112
    iput p1, p0, Lcom/moji/location/poi/MJPoiItem;->i:I

    return-void
.end method

.method public a(Lcom/moji/location/geo/MJLatLonPoint;)V
    .locals 0

    .line 140
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->j:Lcom/moji/location/geo/MJLatLonPoint;

    return-void
.end method

.method public a(Lcom/moji/location/poi/MJIndoorData;)V
    .locals 0

    .line 220
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->t:Lcom/moji/location/poi/MJIndoorData;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 52
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->v:Ljava/lang/String;

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/location/poi/MJSubPoiItem;",
            ">;)V"
        }
    .end annotation

    .line 208
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->x:Ljava/util/List;

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 184
    iput-boolean p1, p0, Lcom/moji/location/poi/MJPoiItem;->s:Z

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 64
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->q:Ljava/lang/String;

    return-object v0
.end method

.method public b(Lcom/moji/location/geo/MJLatLonPoint;)V
    .locals 0

    .line 148
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->k:Lcom/moji/location/geo/MJLatLonPoint;

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 0

    .line 60
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->r:Ljava/lang/String;

    return-void
.end method

.method public c()Ljava/lang/String;
    .locals 1

    .line 72
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->p:Ljava/lang/String;

    return-object v0
.end method

.method public c(Ljava/lang/String;)V
    .locals 0

    .line 68
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->q:Ljava/lang/String;

    return-void
.end method

.method public d()Ljava/lang/String;
    .locals 1

    .line 116
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->b:Ljava/lang/String;

    return-object v0
.end method

.method public d(Ljava/lang/String;)V
    .locals 0

    .line 76
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->p:Ljava/lang/String;

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 1

    .line 120
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->c:Ljava/lang/String;

    return-object v0
.end method

.method public e(Ljava/lang/String;)V
    .locals 0

    .line 84
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->h:Ljava/lang/String;

    return-void
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 4

    const/4 v0, 0x1

    if-ne p0, p1, :cond_0

    return v0

    :cond_0
    const/4 v1, 0x0

    if-nez p1, :cond_1

    return v1

    .line 228
    :cond_1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    if-eq v2, v3, :cond_2

    return v1

    .line 231
    :cond_2
    check-cast p1, Lcom/moji/location/poi/MJPoiItem;

    .line 232
    iget-object v2, p0, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    if-nez v2, :cond_3

    .line 233
    iget-object p1, p1, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    if-eqz p1, :cond_4

    return v1

    .line 236
    :cond_3
    iget-object v2, p0, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    iget-object p1, p1, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_4

    return v1

    :cond_4
    return v0
.end method

.method public f()Lcom/moji/location/geo/MJLatLonPoint;
    .locals 1

    .line 124
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->a:Lcom/moji/location/geo/MJLatLonPoint;

    return-object v0
.end method

.method public f(Ljava/lang/String;)V
    .locals 0

    .line 92
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->e:Ljava/lang/String;

    return-void
.end method

.method public g(Ljava/lang/String;)V
    .locals 0

    .line 100
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->f:Ljava/lang/String;

    return-void
.end method

.method public h(Ljava/lang/String;)V
    .locals 0

    .line 132
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->g:Ljava/lang/String;

    return-void
.end method

.method public hashCode()I
    .locals 2

    .line 246
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->d:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->hashCode()I

    move-result v0

    :goto_0
    const/16 v1, 0x1f

    add-int/2addr v1, v0

    return v1
.end method

.method public i(Ljava/lang/String;)V
    .locals 0

    .line 156
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->l:Ljava/lang/String;

    return-void
.end method

.method public j(Ljava/lang/String;)V
    .locals 0

    .line 164
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->m:Ljava/lang/String;

    return-void
.end method

.method public k(Ljava/lang/String;)V
    .locals 0

    .line 172
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->n:Ljava/lang/String;

    return-void
.end method

.method public l(Ljava/lang/String;)V
    .locals 0

    .line 180
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->o:Ljava/lang/String;

    return-void
.end method

.method public m(Ljava/lang/String;)V
    .locals 0

    .line 192
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->u:Ljava/lang/String;

    return-void
.end method

.method public n(Ljava/lang/String;)V
    .locals 0

    .line 200
    iput-object p1, p0, Lcom/moji/location/poi/MJPoiItem;->w:Ljava/lang/String;

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .line 251
    iget-object v0, p0, Lcom/moji/location/poi/MJPoiItem;->b:Ljava/lang/String;

    return-object v0
.end method
