ua.smali
.class Lcom/sandboxol/greendao/c/ua;
.super Ljava/lang/Object;
.source "VideoInfoDbHelper.java"
# interfaces
.implements Lcom/sandboxol/greendao/e/g;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/greendao/c/wa;->a(Ljava/lang/String;Lcom/sandboxol/greendao/a/c;)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/g<",
"Lcom/sandboxol/greendao/entity/VideoInfo;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Ljava/lang/String;
.field final synthetic b:Lcom/sandboxol/greendao/a/c;
.field final synthetic c:Lcom/sandboxol/greendao/c/wa;
# direct methods
.method constructor <init>(Lcom/sandboxol/greendao/c/wa;Ljava/lang/String;Lcom/sandboxol/greendao/a/c;)V
.registers 4
.line 1
iput-object p1, p0, Lcom/sandboxol/greendao/c/ua;->c:Lcom/sandboxol/greendao/c/wa;
iput-object p2, p0, Lcom/sandboxol/greendao/c/ua;->a:Ljava/lang/String;
iput-object p3, p0, Lcom/sandboxol/greendao/c/ua;->b:Lcom/sandboxol/greendao/a/c;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/sandboxol/greendao/entity/VideoInfo;)V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/greendao/c/ua;->b:Lcom/sandboxol/greendao/a/c;
invoke-interface {v0, p1}, Lcom/sandboxol/greendao/a/c;->onSuccess(Ljava/lang/Object;)V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 2
return-void
.end method
.method public onExecute()Lcom/sandboxol/greendao/entity/VideoInfo;
.registers 7
.line 2
iget-object v0, p0, Lcom/sandboxol/greendao/c/ua;->c:Lcom/sandboxol/greendao/c/wa;
invoke-virtual {v0}, Lcom/sandboxol/greendao/c/wa;->getDao()Lcom/sandboxol/greendao/entity/JoinVideoListDao;
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/JoinVideoListDao$Properties;->VideoListType:Lorg/greenrobot/greendao/f;
iget-object v2, p0, Lcom/sandboxol/greendao/c/ua;->a:Ljava/lang/String;
.line 3
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;
.line 4
invoke-virtual {v0}, Lorg/greenrobot/greendao/d/i;->c()Ljava/util/List;
move-result-object v0
.line 5
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_20
:goto_20
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_54
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/greendao/entity/JoinVideoList;
.line 6
iget-object v3, p0, Lcom/sandboxol/greendao/c/ua;->c:Lcom/sandboxol/greendao/c/wa;
invoke-static {v3}, Lcom/sandboxol/greendao/c/wa;->a(Lcom/sandboxol/greendao/c/wa;)Lcom/sandboxol/greendao/entity/VideoInfoDao;
move-result-object v3
invoke-virtual {v2}, Lcom/sandboxol/greendao/entity/JoinVideoList;->getVideoId()J
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-virtual {v3, v2}, Lorg/greenrobot/greendao/a;->load(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/greendao/entity/VideoInfo;
if-eqz v2, :cond_20
.line 7
iget-object v3, p0, Lcom/sandboxol/greendao/c/ua;->c:Lcom/sandboxol/greendao/c/wa;
invoke-static {v3}, Lcom/sandboxol/greendao/c/wa;->a(Lcom/sandboxol/greendao/c/wa;)Lcom/sandboxol/greendao/entity/VideoInfoDao;
move-result-object v3
invoke-virtual {v2}, Lcom/sandboxol/greendao/entity/VideoInfo;->getVideoId()J
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-virtual {v3, v2}, Lorg/greenrobot/greendao/a;->deleteByKey(Ljava/lang/Object;)V
goto :goto_20
.line 8
:cond_54
iget-object v1, p0, Lcom/sandboxol/greendao/c/ua;->c:Lcom/sandboxol/greendao/c/wa;
invoke-virtual {v1}, Lcom/sandboxol/greendao/c/wa;->getDao()Lcom/sandboxol/greendao/entity/JoinVideoListDao;
move-result-object v1
invoke-virtual {v1, v0}, Lorg/greenrobot/greendao/a;->deleteInTx(Ljava/lang/Iterable;)V
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/ua;->onExecute()Lcom/sandboxol/greendao/entity/VideoInfo;
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/VideoInfo;
invoke-virtual {p0, p1}, Lcom/sandboxol/greendao/c/ua;->a(Lcom/sandboxol/greendao/entity/VideoInfo;)V
return-void
.end method