ra.smali
.class public Lcom/sandboxol/greendao/c/ra;
.super Lcom/sandboxol/greendao/c/y;
.source "UserGameRecordInfoDbHelper.java"
# static fields
.field private static a:Lcom/sandboxol/greendao/c/ra;
# direct methods
.method constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Lcom/sandboxol/greendao/c/y;-><init>()V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/greendao/c/ra;J)Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
.registers 3
.line 1
invoke-direct {p0, p1, p2}, Lcom/sandboxol/greendao/c/ra;->b(J)Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
move-result-object p0
return-object p0
.end method
.method private b(J)Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
.registers 5
.line 1
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/ra;->getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object v0
invoke-virtual {v0}, Lorg/greenrobot/greendao/a;->queryBuilder()Lorg/greenrobot/greendao/d/i;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao$Properties;->UserId:Lorg/greenrobot/greendao/f;
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
invoke-virtual {v1, p1}, Lorg/greenrobot/greendao/f;->a(Ljava/lang/Object;)Lorg/greenrobot/greendao/d/k;
move-result-object p1
const/4 p2, 0x0
new-array v1, p2, [Lorg/greenrobot/greendao/d/k;
invoke-virtual {v0, p1, v1}, Lorg/greenrobot/greendao/d/i;->a(Lorg/greenrobot/greendao/d/k;[Lorg/greenrobot/greendao/d/k;)Lorg/greenrobot/greendao/d/i;
.line 3
invoke-virtual {v0}, Lorg/greenrobot/greendao/d/i;->c()Ljava/util/List;
move-result-object p1
if-eqz p1, :cond_2b
.line 4
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_2b
.line 5
invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
return-object p1
:cond_2b
const/4 p1, 0x0
return-object p1
.end method
.method public static declared-synchronized newInstance()Lcom/sandboxol/greendao/c/ra;
.registers 2
const-class v0, Lcom/sandboxol/greendao/c/ra;
monitor-enter v0
.line 1
:try_start_3
sget-object v1, Lcom/sandboxol/greendao/c/ra;->a:Lcom/sandboxol/greendao/c/ra;
if-nez v1, :cond_e
.line 2
new-instance v1, Lcom/sandboxol/greendao/c/ra;
invoke-direct {v1}, Lcom/sandboxol/greendao/c/ra;-><init>()V
sput-object v1, Lcom/sandboxol/greendao/c/ra;->a:Lcom/sandboxol/greendao/c/ra;
.line 3
:cond_e
sget-object v1, Lcom/sandboxol/greendao/c/ra;->a:Lcom/sandboxol/greendao/c/ra;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v0
return-object v1
:catchall_12
move-exception v1
monitor-exit v0
throw v1
.end method
# virtual methods
.method public a(JLcom/sandboxol/greendao/a/c;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Lcom/sandboxol/greendao/a/c<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.line 2
new-instance v0, Lcom/sandboxol/greendao/c/pa;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/greendao/c/pa;-><init>(Lcom/sandboxol/greendao/c/ra;JLcom/sandboxol/greendao/a/c;)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Lcom/sandboxol/greendao/e/g;)V
return-void
.end method
.method public a(JZ)V
.registers 5
.line 3
new-instance v0, Lcom/sandboxol/greendao/c/v;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/greendao/c/v;-><init>(Lcom/sandboxol/greendao/c/ra;JZ)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V
return-void
.end method
.method public b(JLcom/sandboxol/greendao/a/c;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Lcom/sandboxol/greendao/a/c<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.line 6
new-instance v0, Lcom/sandboxol/greendao/c/qa;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/greendao/c/qa;-><init>(Lcom/sandboxol/greendao/c/ra;JLcom/sandboxol/greendao/a/c;)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Lcom/sandboxol/greendao/e/g;)V
return-void
.end method
.method public b(JZ)V
.registers 5
.line 7
new-instance v0, Lcom/sandboxol/greendao/c/u;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/greendao/c/u;-><init>(Lcom/sandboxol/greendao/c/ra;JZ)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V
return-void
.end method
.method public synthetic c(JZ)V
.registers 7
.line 1
:try_start_0
invoke-direct {p0, p1, p2}, Lcom/sandboxol/greendao/c/ra;->b(J)Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
move-result-object v0
if-eqz v0, :cond_11
.line 2
invoke-virtual {v0, p3}, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;->setIsPlayed(Z)V
.line 3
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/ra;->getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object p1
invoke-virtual {p1, v0}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V
goto :goto_23
.line 4
:cond_11
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/ra;->getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object v0
new-instance v1, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
const/4 v2, 0x0
invoke-direct {v1, p1, p2, p3, v2}, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;-><init>(JZZ)V
invoke-virtual {v0, v1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J
:try_end_1e
.catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_1e} :catch_1f
goto :goto_23
:catch_1f
move-exception p1
.line 5
invoke-virtual {p1}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V
:goto_23
return-void
.end method
.method public synthetic d(JZ)V
.registers 7
.line 1
:try_start_0
invoke-direct {p0, p1, p2}, Lcom/sandboxol/greendao/c/ra;->b(J)Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
move-result-object v0
if-eqz v0, :cond_11
.line 2
invoke-virtual {v0, p3}, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;->setIsSignIn(Z)V
.line 3
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/ra;->getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object p1
invoke-virtual {p1, v0}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V
goto :goto_23
.line 4
:cond_11
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/ra;->getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object v0
new-instance v1, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;
const/4 v2, 0x0
invoke-direct {v1, p1, p2, v2, p3}, Lcom/sandboxol/greendao/entity/UserGameRecordInfo;-><init>(JZZ)V
invoke-virtual {v0, v1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J
:try_end_1e
.catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_1e} :catch_1f
goto :goto_23
:catch_1f
move-exception p1
.line 5
invoke-virtual {p1}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V
:goto_23
return-void
.end method
.method protected getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
.registers 2
.line 2
invoke-super {p0}, Lcom/sandboxol/greendao/c/y;->getDao()Lorg/greenrobot/greendao/a;
move-result-object v0
check-cast v0, Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
return-object v0
.end method
.method protected bridge synthetic getDao()Lorg/greenrobot/greendao/a;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/ra;->getDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object v0
return-object v0
.end method
.method protected init(Lcom/sandboxol/greendao/entity/DaoSession;)Lorg/greenrobot/greendao/a;
.registers 2
.line 1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/DaoSession;->getUserGameRecordInfoDao()Lcom/sandboxol/greendao/entity/UserGameRecordInfoDao;
move-result-object p1
return-object p1
.end method