Oa.smali

.class Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;
.super Ljava/lang/Object;
.source "GameResDownloadManager.java"

# interfaces
.implements Lcom/sandboxol/file/d/e;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->a(Lcom/sandboxol/greendao/entity/Game;Ljava/util/List;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/sandboxol/greendao/entity/Game;

.field final synthetic b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;


# direct methods
.method constructor <init>(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;Lcom/sandboxol/greendao/entity/Game;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    iput-object p2, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->a:Lcom/sandboxol/greendao/entity/Game;

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

    return-void
.end method


# virtual methods
.method public error(Ljava/lang/Throwable;)V
    .registers 3

    .line 1
    iget-object p1, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->a:Lcom/sandboxol/greendao/entity/Game;

    invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->a(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;Ljava/lang/String;)V

    return-void
.end method

.method public synthetic progress(Lcom/sandboxol/file/entity/Progress;)V
    .registers 2

    invoke-static {p0, p1}, Lcom/sandboxol/file/d/d;->a(Lcom/sandboxol/file/d/e;Lcom/sandboxol/file/entity/Progress;)V

    return-void
.end method

.method public success()V
    .registers 7

    .line 1
    iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    iget-object v1, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->a:Lcom/sandboxol/greendao/entity/Game;

    invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/Game;->getLatestResVersions()Lcom/sandboxol/greendao/entity/ResourceLatestVersionData;

    move-result-object v1

    invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/ResourceLatestVersionData;->getGresVersion()J

    move-result-wide v1

    iget-object v3, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    invoke-static {v3}, Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->f(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "new.engine.common.game.version"

    invoke-static {v3, v4}, Lcom/sandboxol/common/utils/SharedUtils;->getLong(Landroid/content/Context;Ljava/lang/String;)J

    move-result-wide v3

    cmp-long v5, v1, v3

    if-nez v5, :cond_1e

    const/4 v1, 0x1

    goto :goto_1f

    :cond_1e
    const/4 v1, 0x0

    :goto_1f
    invoke-static {v0, v1}, Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->a(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;Z)Z

    .line 2
    iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    invoke-static {v0}, Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->g(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;)Z

    move-result v0

    if-eqz v0, :cond_39

    iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    invoke-static {v0}, Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->b(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;)Z

    move-result v0

    if-eqz v0, :cond_39

    .line 3
    iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->b:Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;

    iget-object v1, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/Oa;->a:Lcom/sandboxol/greendao/entity/Game;

    invoke-static {v0, v1}, Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;->c(Lcom/sandboxol/gamedetail/view/fragment/detail/Pa;Lcom/sandboxol/greendao/entity/Game;)V

    :cond_39
    return-void
.end method