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


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

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

    return-void
.end method


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

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

    invoke-direct {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;-><init>()V

    .line 22
    invoke-virtual {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;->b()I

    move-result v0

    if-nez v0, :cond_0

    .line 25
    sget-object v0, Lcom/moji/mjweather/voice/VoiceConstants;->h:Ljava/lang/String;

    goto :goto_0

    .line 27
    :cond_0
    sget-object v0, Lcom/moji/mjweather/voice/VoiceConstants;->g:Ljava/lang/String;

    .line 29
    :goto_0
    invoke-static {v0}, Lcom/moji/tool/FileTool;->b(Ljava/lang/String;)Z

    return-object v0
.end method

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

    .line 34
    new-instance v0, Ljava/lang/StringBuilder;

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

    sget-object v1, Lcom/moji/mjweather/voice/VoiceConstants;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 35
    invoke-static {p1}, Lcom/moji/tool/FileTool;->b(Ljava/lang/String;)Z

    return-object p1
.end method

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

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

    move-result-object v0

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

    move-result-object v0

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

    move-result-object v0

    const-string v1, "CN"

    .line 88
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;

    invoke-direct {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;-><init>()V

    invoke-virtual {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;->a()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    return-object p1

    .line 91
    :cond_0
    new-instance v0, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;

    invoke-direct {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;-><init>()V

    .line 92
    invoke-virtual {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;->b()I

    move-result v0

    if-nez v0, :cond_1

    .line 95
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "f_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 97
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "m_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    :goto_0
    return-object p1
.end method

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

    .line 44
    new-instance v0, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;

    invoke-direct {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;-><init>()V

    invoke-virtual {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;->a()I

    move-result v0

    .line 45
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/assshop/voice/VoicePathManger;->a(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

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

    .line 54
    new-instance v0, Ljava/lang/StringBuilder;

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

    sget-object v1, Lcom/moji/mjweather/voice/VoiceConstants;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 55
    invoke-static {p1}, Lcom/moji/tool/FileTool;->b(Ljava/lang/String;)Z

    return-object p1
.end method

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

    .line 64
    new-instance v0, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;

    invoke-direct {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;-><init>()V

    invoke-virtual {v0}, Lcom/moji/mjweather/assshop/voice/modle/VoiceDataManager;->a()I

    move-result v0

    .line 65
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/assshop/voice/VoicePathManger;->b(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

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

    .line 74
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/assshop/voice/VoicePathManger;->a(I)Ljava/lang/String;

    move-result-object p1

    .line 75
    new-instance v0, Ljava/io/File;

    const-string v1, "voice_trail.mp3"

    invoke-direct {v0, p1, v1}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 76
    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method
