X.smali

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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/gamedetail/view/fragment/detail/ca;->a(Lcom/sandboxol/greendao/entity/Game;)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/file/entity/DownloadInfo;

.field final synthetic c:Lcom/sandboxol/center/download/entity/GameReqParam;

.field final synthetic d:Lcom/sandboxol/gamedetail/view/fragment/detail/ca;


# direct methods
.method constructor <init>(Lcom/sandboxol/gamedetail/view/fragment/detail/ca;Lcom/sandboxol/greendao/entity/Game;[Lcom/sandboxol/file/entity/DownloadInfo;Lcom/sandboxol/center/download/entity/GameReqParam;)V
    .registers 5

    .line 1
    iput-object p1, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->d:Lcom/sandboxol/gamedetail/view/fragment/detail/ca;

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

    iput-object p3, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->b:[Lcom/sandboxol/file/entity/DownloadInfo;

    iput-object p4, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->c:Lcom/sandboxol/center/download/entity/GameReqParam;

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

    return-void
.end method


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

    invoke-static {p0, p1}, Lcom/sandboxol/file/d/d;->a(Lcom/sandboxol/file/d/e;Ljava/lang/Throwable;)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/X;->d:Lcom/sandboxol/gamedetail/view/fragment/detail/ca;

    iget-object v1, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->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;->getCresVersion()J

    move-result-wide v1

    iget-object v3, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->d:Lcom/sandboxol/gamedetail/view/fragment/detail/ca;

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

    move-result-object v3

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

    invoke-virtual {v4}, Lcom/sandboxol/greendao/entity/Game;->getIsNewEngine()I

    move-result v4

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

    invoke-virtual {v5}, Lcom/sandboxol/greendao/entity/Game;->getIsUgc()I

    move-result v5

    invoke-static {v3, v4, v5}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->loadCommonResVersion(Landroid/content/Context;II)J

    move-result-wide v3

    cmp-long v5, v1, v3

    if-nez v5, :cond_28

    const/4 v1, 0x1

    goto :goto_29

    :cond_28
    const/4 v1, 0x0

    :goto_29
    iput-boolean v1, v0, Lcom/sandboxol/gamedetail/view/fragment/detail/ca;->r:Z

    .line 2
    iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->d:Lcom/sandboxol/gamedetail/view/fragment/detail/ca;

    iget-boolean v1, v0, Lcom/sandboxol/gamedetail/view/fragment/detail/ca;->r:Z

    if-eqz v1, :cond_3e

    iget-boolean v1, v0, Lcom/sandboxol/gamedetail/view/fragment/detail/ca;->s:Z

    if-eqz v1, :cond_3e

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

    iget-object v2, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->b:[Lcom/sandboxol/file/entity/DownloadInfo;

    iget-object v3, p0, Lcom/sandboxol/gamedetail/view/fragment/detail/X;->c:Lcom/sandboxol/center/download/entity/GameReqParam;

    invoke-static {v0, v1, v2, v3}, Lcom/sandboxol/gamedetail/view/fragment/detail/ca;->a(Lcom/sandboxol/gamedetail/view/fragment/detail/ca;Lcom/sandboxol/greendao/entity/Game;[Lcom/sandboxol/file/entity/DownloadInfo;Lcom/sandboxol/center/download/entity/GameReqParam;)V

    :cond_3e
    return-void
.end method