.class public Lcom/moji/mjweather/assshop/voice/modle/VoiceSimpleData;
.super Ljava/lang/Object;
.source "VoiceSimpleData.java"


# instance fields
.field private a:Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

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

    .line 21
    new-instance v0, Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;

    invoke-direct {v0, p1}, Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/moji/mjweather/assshop/voice/modle/VoiceSimpleData;->a:Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;

    return-void
.end method


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

    .line 29
    new-instance v0, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v0}, Lcom/moji/preferences/DefaultPrefer;->i()I

    move-result v0

    return v0
.end method

.method public a(I)V
    .locals 2

    .line 36
    new-instance v0, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v0, p1}, Lcom/moji/preferences/DefaultPrefer;->d(I)V

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    .line 38
    invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/preferences/units/SettingCenter;->c()Lcom/moji/preferences/units/VOICE_LANGUAGE;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/preferences/units/VOICE_LANGUAGE;->name()Ljava/lang/String;

    move-result-object p1

    const-string v0, "CN"

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

    move-result p1

    if-nez p1, :cond_0

    .line 39
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->c()Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 41
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

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

    move-result v0

    if-eqz v0, :cond_0

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

    move-result-object v0

    check-cast v0, Lcom/moji/common/area/AreaInfo;

    .line 42
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/moji/weatherprovider/provider/WeatherProvider;->c(Lcom/moji/common/area/AreaInfo;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method public b()I
    .locals 3

    .line 52
    iget-object v0, p0, Lcom/moji/mjweather/assshop/voice/modle/VoiceSimpleData;->a:Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;

    sget-object v1, Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref$KeyConstant;->VOICE_USING_SEX:Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref$KeyConstant;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I

    move-result v0

    return v0
.end method

.method public b(I)V
    .locals 2

    .line 56
    iget-object v0, p0, Lcom/moji/mjweather/assshop/voice/modle/VoiceSimpleData;->a:Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;

    sget-object v1, Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref$KeyConstant;->VOICE_USING_SEX:Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref$KeyConstant;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Lcom/moji/mjweather/assshop/voice/modle/VoiceSharedPref;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Number;)V

    return-void
.end method
