LatestVersion.smali

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


# instance fields
.field private apkMd5:Ljava/lang/String;

.field private apkUrl:Ljava/lang/String;

.field private content:Ljava/lang/String;

.field private domainSwitchThresholdVersion:I

.field private downInfoMap:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/sandboxol/center/entity/DownInfo;",
            ">;"
        }
    .end annotation
.end field

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

.field private forceUpdateMaxVersionCode:I

.field private forceUpdateMinVersionCode:I

.field private langMap:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/sandboxol/center/entity/Lang;",
            ">;"
        }
    .end annotation
.end field

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

.field private newVersionCode:I

.field private picUrl:Ljava/lang/String;

.field private smallerThanVersion:I

.field private status:I

.field private updateInfo:Ljava/lang/String;

.field private url:Ljava/lang/String;


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

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

    const-string v0, ""

    .line 2
    iput-object v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->updateInfo:Ljava/lang/String;

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->newVersionCode:I

    .line 4
    iput v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->smallerThanVersion:I

    .line 5
    iput v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->forceUpdateMinVersionCode:I

    .line 6
    iput v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->forceUpdateMaxVersionCode:I

    .line 7
    iput v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->domainSwitchThresholdVersion:I

    .line 8
    iput v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->status:I

    return-void
.end method


# virtual methods
.method public getApkMd5()Ljava/lang/String;
    .registers 2

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

    return-object v0
.end method

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

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

    return-object v0
.end method

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

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

    if-eqz v0, :cond_2d

    iget-object v1, p0, Lcom/sandboxol/center/entity/LatestVersion;->content:Ljava/lang/String;

    if-nez v1, :cond_2d

    .line 2
    invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/center/entity/Lang;

    if-nez v0, :cond_1e

    .line 3
    iget-object v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->langMap:Ljava/util/Map;

    const-string v1, "en_US"

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/center/entity/Lang;

    :cond_1e
    if-eqz v0, :cond_2d

    if-eqz p1, :cond_27

    .line 4
    invoke-virtual {v0}, Lcom/sandboxol/center/entity/Lang;->getForcible()Ljava/lang/String;

    move-result-object p1

    goto :goto_2b

    :cond_27
    invoke-virtual {v0}, Lcom/sandboxol/center/entity/Lang;->getNormal()Ljava/lang/String;

    move-result-object p1

    :goto_2b
    iput-object p1, p0, Lcom/sandboxol/center/entity/LatestVersion;->content:Ljava/lang/String;

    .line 5
    :cond_2d
    iget-object p1, p0, Lcom/sandboxol/center/entity/LatestVersion;->content:Ljava/lang/String;

    if-nez p1, :cond_37

    .line 6
    invoke-virtual {p0}, Lcom/sandboxol/center/entity/LatestVersion;->getUpdateInfo()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/sandboxol/center/entity/LatestVersion;->content:Ljava/lang/String;

    .line 7
    :cond_37
    iget-object p1, p0, Lcom/sandboxol/center/entity/LatestVersion;->content:Ljava/lang/String;

    return-object p1
.end method

.method public getDomainSwitchThresholdVersion()I
    .registers 2

    .line 1
    iget v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->domainSwitchThresholdVersion:I

    return v0
.end method

.method public getDownInfoMap()Ljava/util/Map;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/sandboxol/center/entity/DownInfo;",
            ">;"
        }
    .end annotation

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

    return-object v0
.end method

.method public getDownloadGames()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/LatestVersion;->downloadGames:Ljava/util/List;

    return-object v0
.end method

.method public getForceUpdateMaxVersionCode()I
    .registers 2

    .line 1
    iget v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->forceUpdateMaxVersionCode:I

    return v0
.end method

.method public getForceUpdateMinVersionCode()I
    .registers 2

    .line 1
    iget v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->forceUpdateMinVersionCode:I

    return v0
.end method

.method public getNeedTobeForceUpdateVersions()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/LatestVersion;->needTobeForceUpdateVersions:Ljava/util/List;

    if-nez v0, :cond_b

    .line 2
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->needTobeForceUpdateVersions:Ljava/util/List;

    .line 3
    :cond_b
    iget-object v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->needTobeForceUpdateVersions:Ljava/util/List;

    return-object v0
.end method

.method public getNewVersionCode()I
    .registers 2

    .line 1
    iget v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->newVersionCode:I

    return v0
.end method

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

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

    return-object v0
.end method

.method public getSmallerThanVersion()I
    .registers 2

    .line 1
    iget v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->smallerThanVersion:I

    return v0
.end method

.method public getStatus()I
    .registers 2

    .line 1
    iget v0, p0, Lcom/sandboxol/center/entity/LatestVersion;->status:I

    return v0
.end method

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

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

    return-object v0
.end method

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

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

    return-object v0
.end method

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

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

    return-void
.end method

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

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

    return-void
.end method

.method public setDomainSwitchThresholdVersion(I)V
    .registers 2

    .line 1
    iput p1, p0, Lcom/sandboxol/center/entity/LatestVersion;->domainSwitchThresholdVersion:I

    return-void
.end method

.method public setDownInfoMap(Ljava/util/Map;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/sandboxol/center/entity/DownInfo;",
            ">;)V"
        }
    .end annotation

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

    return-void
.end method

.method public setDownloadGames(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/LatestVersion;->downloadGames:Ljava/util/List;

    return-void
.end method

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

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

    return-void
.end method

.method public setStatus(I)V
    .registers 2

    .line 1
    iput p1, p0, Lcom/sandboxol/center/entity/LatestVersion;->status:I

    return-void
.end method

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

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

    return-void
.end method