.class public Lcom/moji/areamanagement/entity/CityItemRecord;
.super Ljava/lang/Object;
.source "CityItemRecord.java"

# interfaces
.implements Landroid/os/Parcelable;


# annotations
.annotation build Landroid/support/annotation/Keep;
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;
    }
.end annotation


# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/os/Parcelable$Creator<",
            "Lcom/moji/areamanagement/entity/CityItemRecord;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public cityID:I

.field public cityName:Ljava/lang/String;

.field public cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

.field public isLocation:Z

.field public newCityID:I

.field public provinceName:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 55
    new-instance v0, Lcom/moji/areamanagement/entity/CityItemRecord$1;

    invoke-direct {v0}, Lcom/moji/areamanagement/entity/CityItemRecord$1;-><init>()V

    sput-object v0, Lcom/moji/areamanagement/entity/CityItemRecord;->CREATOR:Landroid/os/Parcelable$Creator;

    return-void
.end method

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

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

    .line 41
    sget-object v0, Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;->LOCAL_STORAGE_CITY:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    iput-object v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    const/4 v0, 0x0

    .line 42
    iput-boolean v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->isLocation:Z

    return-void
.end method

.method public constructor <init>(Landroid/os/Parcel;)V
    .locals 3

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

    .line 41
    sget-object v0, Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;->LOCAL_STORAGE_CITY:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    iput-object v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    const/4 v0, 0x0

    .line 42
    iput-boolean v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->isLocation:Z

    .line 29
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v1

    iput v1, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityID:I

    .line 30
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v1

    iput v1, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->newCityID:I

    .line 31
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityName:Ljava/lang/String;

    .line 32
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->provinceName:Ljava/lang/String;

    .line 33
    invoke-static {}, Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;->values()[Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    move-result-object v1

    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v2

    aget-object v1, v1, v2

    iput-object v1, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    .line 34
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result p1

    const/4 v1, 0x1

    if-ne p1, v1, :cond_0

    const/4 v0, 0x1

    :cond_0
    iput-boolean v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->isLocation:Z

    return-void
.end method

.method public constructor <init>(Lcom/moji/http/ugc/bean/HotCityListResp$HotCityItem;Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;)V
    .locals 1

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

    .line 41
    sget-object v0, Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;->LOCAL_STORAGE_CITY:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    iput-object v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    const/4 v0, 0x0

    .line 42
    iput-boolean v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->isLocation:Z

    if-eqz p1, :cond_0

    .line 20
    iget v0, p1, Lcom/moji/http/ugc/bean/HotCityListResp$HotCityItem;->city_id:I

    iput v0, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityID:I

    .line 21
    iget-object p1, p1, Lcom/moji/http/ugc/bean/HotCityListResp$HotCityItem;->city_name:Ljava/lang/String;

    iput-object p1, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityName:Ljava/lang/String;

    :cond_0
    if-eqz p2, :cond_1

    .line 24
    iput-object p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    :cond_1
    return-void
.end method


# virtual methods
.method public describeContents()I
    .locals 1

    const v0, 0x38f69

    return v0
.end method

.method public writeToParcel(Landroid/os/Parcel;I)V
    .locals 0

    .line 72
    iget p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityID:I

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 73
    iget p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->newCityID:I

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 74
    iget-object p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityName:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 75
    iget-object p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->provinceName:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 76
    iget-object p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->cityType:Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;

    invoke-virtual {p2}, Lcom/moji/areamanagement/entity/CityItemRecord$CITY_TYPE;->ordinal()I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 77
    iget-boolean p2, p0, Lcom/moji/areamanagement/entity/CityItemRecord;->isLocation:Z

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    return-void
.end method
