AppInfoCenter.smali

.class public Lcom/sandboxol/center/entity/AppInfoCenter;
.super Ljava/lang/Object;
.source "AppInfoCenter.java"


# static fields
.field private static appInfoCenter:Lcom/sandboxol/center/entity/AppInfoCenter;


# instance fields
.field private adsCdConfig:Lcom/sandboxol/center/entity/AdsCdConfig;

.field private appConfig:Lcom/sandboxol/center/entity/AppConfig;

.field private authTokenSuccess:Z

.field private blockAccount:Lcom/sandboxol/center/entity/BlockAccountResult;

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

.field private hasUpdateUserInfo:Z

.field private isLoaded:Z

.field private isNowParty:Z

.field private isShowThirdPart:Z

.field private latelyRegion:Ljava/lang/String;

.field private latestVersion:Lcom/sandboxol/center/entity/LatestVersion;

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

.field private resCheckEntity:Lcom/sandboxol/center/entity/ResCheckEntity;

.field private stopServiceAnnouncementInfo:Lcom/sandboxol/center/entity/SystemAnnouncementInfo;
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field private systemAnnouncementInfo:Lcom/sandboxol/center/entity/SystemAnnouncementInfo;
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field


# direct methods
.method private constructor <init>()V
    .registers 2

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

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->isLoaded:Z

    .line 3
    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->gameDetailToEditor:Ljava/util/Map;

    return-void
.end method

.method public static newInstance()Lcom/sandboxol/center/entity/AppInfoCenter;
    .registers 1

    .line 1
    sget-object v0, Lcom/sandboxol/center/entity/AppInfoCenter;->appInfoCenter:Lcom/sandboxol/center/entity/AppInfoCenter;

    if-nez v0, :cond_b

    .line 2
    new-instance v0, Lcom/sandboxol/center/entity/AppInfoCenter;

    invoke-direct {v0}, Lcom/sandboxol/center/entity/AppInfoCenter;-><init>()V

    sput-object v0, Lcom/sandboxol/center/entity/AppInfoCenter;->appInfoCenter:Lcom/sandboxol/center/entity/AppInfoCenter;

    .line 3
    :cond_b
    sget-object v0, Lcom/sandboxol/center/entity/AppInfoCenter;->appInfoCenter:Lcom/sandboxol/center/entity/AppInfoCenter;

    return-object v0
.end method

.method private saveFaceParts(Lcom/sandboxol/center/entity/DressFaceParts;)V
    .registers 5

    if-eqz p1, :cond_19

    .line 1
    :try_start_2
    invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "key.face.parts"

    new-instance v2, Lcom/google/gson/j;

    invoke-direct {v2}, Lcom/google/gson/j;-><init>()V

    invoke-virtual {v2, p1}, Lcom/google/gson/j;->a(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, v1, p1}, Lcom/sandboxol/common/utils/SharedUtils;->putString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_14} :catch_15

    goto :goto_19

    :catch_15
    move-exception p1

    .line 2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_19
    :goto_19
    return-void
.end method


# virtual methods
.method public getAdsCdConfig()Lcom/sandboxol/center/entity/AdsCdConfig;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->adsCdConfig:Lcom/sandboxol/center/entity/AdsCdConfig;

    if-nez v0, :cond_9

    new-instance v0, Lcom/sandboxol/center/entity/AdsCdConfig;

    invoke-direct {v0}, Lcom/sandboxol/center/entity/AdsCdConfig;-><init>()V

    :cond_9
    return-object v0
.end method

.method public getAppConfig()Lcom/sandboxol/center/entity/AppConfig;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->appConfig:Lcom/sandboxol/center/entity/AppConfig;

    if-nez v0, :cond_9

    new-instance v0, Lcom/sandboxol/center/entity/AppConfig;

    invoke-direct {v0}, Lcom/sandboxol/center/entity/AppConfig;-><init>()V

    :cond_9
    return-object v0
.end method

.method public getBlockAccount()Lcom/sandboxol/center/entity/BlockAccountResult;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->blockAccount:Lcom/sandboxol/center/entity/BlockAccountResult;

    return-object v0
.end method

.method public getGameDetailToEditor()Ljava/util/Map;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->gameDetailToEditor:Ljava/util/Map;

    return-object v0
.end method

.method public getLatelyRegion()Ljava/lang/String;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->latelyRegion:Ljava/lang/String;

    if-nez v0, :cond_6

    const-string v0, "1001"

    :cond_6
    return-object v0
.end method

.method public getLatestVersion()Lcom/sandboxol/center/entity/LatestVersion;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->latestVersion:Lcom/sandboxol/center/entity/LatestVersion;

    return-object v0
.end method

.method public getQuickInText()Ljava/util/List;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->quickInText:Ljava/util/List;

    return-object v0
.end method

.method public getResCheckEntity()Lcom/sandboxol/center/entity/ResCheckEntity;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->resCheckEntity:Lcom/sandboxol/center/entity/ResCheckEntity;

    return-object v0
.end method

.method public getStopServiceAnnouncementInfo()Lcom/sandboxol/center/entity/SystemAnnouncementInfo;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->stopServiceAnnouncementInfo:Lcom/sandboxol/center/entity/SystemAnnouncementInfo;

    return-object v0
.end method

.method public getSystemAnnouncementInfo()Lcom/sandboxol/center/entity/SystemAnnouncementInfo;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->systemAnnouncementInfo:Lcom/sandboxol/center/entity/SystemAnnouncementInfo;

    return-object v0
.end method

.method public isAuthTokenSuccess()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->authTokenSuccess:Z

    return v0
.end method

.method public isLoaded()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->isLoaded:Z

    return v0
.end method

.method public isNowParty()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->isNowParty:Z

    return v0
.end method

.method public isShowGameDetailToEditor(Ljava/lang/String;)Z
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->gameDetailToEditor:Ljava/util/Map;

    if-eqz v0, :cond_28

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v0

    if-eqz v0, :cond_28

    .line 2
    iget-object v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->gameDetailToEditor:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_28

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

    move-result-object v1

    check-cast v1, Ljava/lang/String;

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

    move-result v1

    if-eqz v1, :cond_14

    const/4 p1, 0x1

    return p1

    :cond_28
    const/4 p1, 0x0

    return p1
.end method

.method public setAdsCdConfig(Lcom/sandboxol/center/entity/AdsCdConfig;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->adsCdConfig:Lcom/sandboxol/center/entity/AdsCdConfig;

    return-void
.end method

.method public setAppConfig(Lcom/sandboxol/center/entity/AppConfig;)V
    .registers 4

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->appConfig:Lcom/sandboxol/center/entity/AppConfig;

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->isLoaded:Z

    .line 3
    invoke-static {}, Lcom/sandboxol/file/entity/DownloadConfig;->newInstance()Lcom/sandboxol/file/entity/DownloadConfig;

    move-result-object v0

    invoke-virtual {p1}, Lcom/sandboxol/center/entity/AppConfig;->getDownloadConfig()Lcom/sandboxol/file/entity/DownloadConfig;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/sandboxol/file/entity/DownloadConfig;->setDownloadConfig(Lcom/sandboxol/file/entity/DownloadConfig;)V

    const/4 v0, 0x0

    .line 4
    invoke-virtual {p0, v0}, Lcom/sandboxol/center/entity/AppInfoCenter;->setNowParty(Z)V

    .line 5
    invoke-virtual {p1}, Lcom/sandboxol/center/entity/AppConfig;->getDressFaceParts()Lcom/sandboxol/center/entity/DressFaceParts;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/sandboxol/center/entity/AppInfoCenter;->saveFaceParts(Lcom/sandboxol/center/entity/DressFaceParts;)V

    .line 6
    invoke-static {}, Lcom/sandboxol/common/messenger/Messenger;->getDefault()Lcom/sandboxol/common/messenger/Messenger;

    move-result-object p1

    const-string v0, "token.load.config.finish"

    invoke-virtual {p1, v0}, Lcom/sandboxol/common/messenger/Messenger;->sendNoMsg(Ljava/lang/Object;)V

    return-void
.end method

.method public setAuthTokenSuccess(Z)V
    .registers 2

    .line 1
    iput-boolean p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->authTokenSuccess:Z

    return-void
.end method

.method public setBlockAccount(Lcom/sandboxol/center/entity/BlockAccountResult;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->blockAccount:Lcom/sandboxol/center/entity/BlockAccountResult;

    return-void
.end method

.method public setGameDetailToEditor(Ljava/util/Map;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->gameDetailToEditor:Ljava/util/Map;

    return-void
.end method

.method public setLatelyRegion(Ljava/lang/String;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->latelyRegion:Ljava/lang/String;

    return-void
.end method

.method public setLatestVersion(Lcom/sandboxol/center/entity/LatestVersion;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->latestVersion:Lcom/sandboxol/center/entity/LatestVersion;

    return-void
.end method

.method public setNowParty(Z)V
    .registers 2

    .line 1
    iput-boolean p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->isNowParty:Z

    return-void
.end method

.method public setQuickInText(Ljava/util/List;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->quickInText:Ljava/util/List;

    return-void
.end method

.method public setResCheckEntity(Lcom/sandboxol/center/entity/ResCheckEntity;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->resCheckEntity:Lcom/sandboxol/center/entity/ResCheckEntity;

    return-void
.end method

.method public setStopServiceAnnouncementInfo(Lcom/sandboxol/center/entity/SystemAnnouncementInfo;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->stopServiceAnnouncementInfo:Lcom/sandboxol/center/entity/SystemAnnouncementInfo;

    return-void
.end method

.method public setSystemAnnouncementInfo(Lcom/sandboxol/center/entity/SystemAnnouncementInfo;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/center/entity/AppInfoCenter;->systemAnnouncementInfo:Lcom/sandboxol/center/entity/SystemAnnouncementInfo;

    return-void
.end method