.class public Lcom/moji/http/sakura/entity/SakuraListContentInfo;
.super Lcom/moji/requestcore/entity/MJBaseRespRc;
.source "SakuraListContentInfo.java"


# instance fields
.field public data_show_type:I

.field public distance:Ljava/lang/String;

.field private show_next_spot_state:Ljava/lang/String;

.field private show_next_state_time:Ljava/lang/String;

.field private show_spot_distance:Ljava/lang/String;

.field private show_spot_state:Ljava/lang/String;

.field public spot_address:Ljava/lang/String;

.field public spot_id:Ljava/lang/String;

.field public spot_name:Ljava/lang/String;

.field public spot_next_state:Ljava/lang/String;

.field public spot_next_state_time:Ljava/lang/String;

.field public spot_pic_url:Ljava/lang/String;

.field public spot_sakura_variety:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public spot_state:Ljava/lang/String;

.field public spot_type:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 17
    invoke-direct {p0}, Lcom/moji/requestcore/entity/MJBaseRespRc;-><init>()V

    const/4 v0, 0x1

    .line 33
    iput v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->data_show_type:I

    return-void
.end method

.method public static getSpotState(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 49
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, -0x1

    .line 50
    invoke-virtual {p0}, Ljava/lang/String;->hashCode()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    const-string v1, "5"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x4

    goto :goto_0

    :pswitch_1
    const-string v1, "4"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x3

    goto :goto_0

    :pswitch_2
    const-string v1, "3"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x2

    goto :goto_0

    :pswitch_3
    const-string v1, "2"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :pswitch_4
    const-string v1, "1"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x0

    :cond_0
    :goto_0
    packed-switch v0, :pswitch_data_1

    const-string p0, "\u82b1\u857e\u671f"

    return-object p0

    :pswitch_5
    const-string p0, "\u7ed3\u675f\u671f"

    return-object p0

    :pswitch_6
    const-string p0, "\u6a31\u82b1\u96ea"

    return-object p0

    :pswitch_7
    const-string p0, "\u76db\u5f00\u671f"

    return-object p0

    :pswitch_8
    const-string p0, "\u521d\u5f00\u671f"

    return-object p0

    :pswitch_9
    const-string p0, "\u82b1\u857e\u671f"

    return-object p0

    :cond_1
    const-string p0, ""

    return-object p0

    :pswitch_data_0
    .packed-switch 0x31
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
    .end packed-switch
.end method

.method public static getSpotStateTime(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 70
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, -0x1

    .line 71
    invoke-virtual {p0}, Ljava/lang/String;->hashCode()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    const-string v1, "5"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x4

    goto :goto_0

    :pswitch_1
    const-string v1, "4"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x3

    goto :goto_0

    :pswitch_2
    const-string v1, "3"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x2

    goto :goto_0

    :pswitch_3
    const-string v1, "2"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :pswitch_4
    const-string v1, "1"

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

    move-result p0

    if-eqz p0, :cond_0

    const/4 v0, 0x0

    :cond_0
    :goto_0
    packed-switch v0, :pswitch_data_1

    const-string p0, "\u82b1\u857e\u65e5"

    return-object p0

    :pswitch_5
    const-string p0, "\u7ed3\u675f\u65e5"

    return-object p0

    :pswitch_6
    const-string p0, "\u6a31\u82b1\u96ea"

    return-object p0

    :pswitch_7
    const-string p0, "\u76db\u5f00\u65e5"

    return-object p0

    :pswitch_8
    const-string p0, "\u521d\u5f00\u65e5"

    return-object p0

    :pswitch_9
    const-string p0, "\u82b1\u857e\u65e5"

    return-object p0

    :cond_1
    const-string p0, ""

    return-object p0

    :pswitch_data_0
    .packed-switch 0x31
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
    .end packed-switch
.end method


# virtual methods
.method public getDiatance()Ljava/lang/String;
    .locals 3

    .line 105
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_distance:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 107
    :try_start_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->distance:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->distance:Ljava/lang/String;

    const-string v1, "."

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 108
    new-instance v0, Ljava/text/DecimalFormat;

    const-string v1, "#.0"

    invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->distance:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_distance:Ljava/lang/String;

    goto :goto_0

    .line 110
    :cond_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->distance:Ljava/lang/String;

    iput-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_distance:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "getDiatance"

    .line 113
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 116
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_distance:Ljava/lang/String;

    return-object v0
.end method

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

    .line 91
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_spot_state:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 92
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->spot_next_state:Ljava/lang/String;

    invoke-static {v0}, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->getSpotStateTime(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_spot_state:Ljava/lang/String;

    .line 94
    :cond_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_spot_state:Ljava/lang/String;

    return-object v0
.end method

.method public getNextStateTime()Ljava/lang/String;
    .locals 2

    .line 36
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_state_time:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 37
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_state_time:Ljava/lang/String;

    return-object v0

    .line 38
    :cond_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->spot_next_state_time:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 40
    :try_start_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->spot_next_state_time:Ljava/lang/String;

    const-string v1, "yyyymmdd"

    invoke-static {v0, v1}, Lcom/moji/tool/DateFormatTool;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    const-string v1, "mm\u6708dd\u65e5"

    invoke-static {v0, v1}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_state_time:Ljava/lang/String;
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "SakuraListContentInfo"

    .line 42
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 45
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_next_state_time:Ljava/lang/String;

    return-object v0
.end method

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

    .line 98
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_state:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 99
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->spot_state:Ljava/lang/String;

    invoke-static {v0}, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->getSpotState(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_state:Ljava/lang/String;

    .line 101
    :cond_0
    iget-object v0, p0, Lcom/moji/http/sakura/entity/SakuraListContentInfo;->show_spot_state:Ljava/lang/String;

    return-object v0
.end method
