L.smali

.class Lcom/sandboxol/greendao/c/L;
.super Ljava/lang/Object;
.source "GameDetailDbHelper.java"

# interfaces
.implements Lcom/sandboxol/greendao/e/i;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/greendao/c/M;->d()V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/sandboxol/greendao/e/i<",
        "Lcom/sandboxol/greendao/entity/Game;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Ljava/util/concurrent/CountDownLatch;

.field final synthetic b:Lcom/sandboxol/greendao/c/M;


# direct methods
.method constructor <init>(Lcom/sandboxol/greendao/c/M;Ljava/util/concurrent/CountDownLatch;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/sandboxol/greendao/c/L;->b:Lcom/sandboxol/greendao/c/M;

    iput-object p2, p0, Lcom/sandboxol/greendao/c/L;->a:Ljava/util/concurrent/CountDownLatch;

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

    return-void
.end method


# virtual methods
.method public a(Lcom/sandboxol/greendao/entity/Game;)V
    .registers 2

    .line 1
    iget-object p1, p0, Lcom/sandboxol/greendao/c/L;->a:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    return-void
.end method

.method public onError(Ljava/lang/Throwable;)V
    .registers 2

    .line 1
    iget-object p1, p0, Lcom/sandboxol/greendao/c/L;->a:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    return-void
.end method

.method public onExecute()Lcom/sandboxol/greendao/entity/Game;
    .registers 4

    .line 2
    iget-object v0, p0, Lcom/sandboxol/greendao/c/L;->b:Lcom/sandboxol/greendao/c/M;

    invoke-virtual {v0}, Lcom/sandboxol/greendao/c/M;->getDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object v0

    invoke-virtual {v0}, Lorg/greenrobot/greendao/a;->queryBuilder()Lorg/greenrobot/greendao/d/i;

    move-result-object v0

    sget-object v1, Lcom/sandboxol/greendao/entity/GameDao$Properties;->InsertedGameDetail:Lorg/greenrobot/greendao/f;

    const/4 v2, 0x1

    .line 3
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v1, v2}, Lorg/greenrobot/greendao/f;->a(Ljava/lang/Object;)Lorg/greenrobot/greendao/d/k;

    move-result-object v1

    const/4 v2, 0x0

    new-array v2, v2, [Lorg/greenrobot/greendao/d/k;

    invoke-virtual {v0, v1, v2}, Lorg/greenrobot/greendao/d/i;->a(Lorg/greenrobot/greendao/d/k;[Lorg/greenrobot/greendao/d/k;)Lorg/greenrobot/greendao/d/i;

    invoke-virtual {v0}, Lorg/greenrobot/greendao/d/i;->c()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_43

    .line 4
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_43

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

    move-result-object v1

    check-cast v1, Lcom/sandboxol/greendao/entity/Game;

    .line 5
    new-instance v2, Lcom/sandboxol/greendao/entity/ResourceLatestVersionData;

    invoke-direct {v2}, Lcom/sandboxol/greendao/entity/ResourceLatestVersionData;-><init>()V

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

    .line 6
    iget-object v2, p0, Lcom/sandboxol/greendao/c/L;->b:Lcom/sandboxol/greendao/c/M;

    invoke-virtual {v2}, Lcom/sandboxol/greendao/c/M;->getDao()Lcom/sandboxol/greendao/entity/GameDao;

    move-result-object v2

    invoke-virtual {v2, v1}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V

    goto :goto_25

    :cond_43
    const/4 v0, 0x0

    return-object v0
.end method

.method public bridge synthetic onExecute()Ljava/lang/Object;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lcom/sandboxol/greendao/c/L;->onExecute()Lcom/sandboxol/greendao/entity/Game;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
    .registers 2

    .line 1
    check-cast p1, Lcom/sandboxol/greendao/entity/Game;

    invoke-virtual {p0, p1}, Lcom/sandboxol/greendao/c/L;->a(Lcom/sandboxol/greendao/entity/Game;)V

    return-void
.end method