E.smali
.class Lcom/sandboxol/greendao/c/E;
.super Ljava/lang/Object;
.source "FriendDbHelper.java"
# interfaces
.implements Lcom/sandboxol/greendao/e/g;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/greendao/c/H;->a(Lcom/sandboxol/greendao/entity/Friend;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/Friend;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/sandboxol/greendao/entity/Friend;
.field final synthetic b:Lcom/sandboxol/greendao/a/c;
.field final synthetic c:Lcom/sandboxol/greendao/c/H;
# direct methods
.method constructor <init>(Lcom/sandboxol/greendao/c/H;Lcom/sandboxol/greendao/entity/Friend;Lcom/sandboxol/greendao/a/c;)V
.registers 4
.line 1
iput-object p1, p0, Lcom/sandboxol/greendao/c/E;->c:Lcom/sandboxol/greendao/c/H;
iput-object p2, p0, Lcom/sandboxol/greendao/c/E;->a:Lcom/sandboxol/greendao/entity/Friend;
iput-object p3, p0, Lcom/sandboxol/greendao/c/E;->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/Friend;)V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/greendao/c/E;->b:Lcom/sandboxol/greendao/a/c;
if-eqz v0, :cond_7
.line 2
invoke-interface {v0, p1}, Lcom/sandboxol/greendao/a/c;->onSuccess(Ljava/lang/Object;)V
:cond_7
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 4
.line 1
iget-object p1, p0, Lcom/sandboxol/greendao/c/E;->b:Lcom/sandboxol/greendao/a/c;
if-eqz p1, :cond_a
const/4 v0, -0x1
const-string v1, ""
.line 2
invoke-interface {p1, v0, v1}, Lcom/sandboxol/greendao/a/c;->onError(ILjava/lang/String;)V
:cond_a
return-void
.end method
.method public onExecute()Lcom/sandboxol/greendao/entity/Friend;
.registers 6
.line 2
iget-object v0, p0, Lcom/sandboxol/greendao/c/E;->c:Lcom/sandboxol/greendao/c/H;
invoke-static {v0}, Lcom/sandboxol/greendao/c/H;->a(Lcom/sandboxol/greendao/c/H;)J
move-result-wide v1
iget-object v3, p0, Lcom/sandboxol/greendao/c/E;->a:Lcom/sandboxol/greendao/entity/Friend;
invoke-virtual {v3}, Lcom/sandboxol/greendao/entity/Friend;->getUserId()J
move-result-wide v3
invoke-static {v0, v1, v2, v3, v4}, Lcom/sandboxol/greendao/c/H;->a(Lcom/sandboxol/greendao/c/H;JJ)Lcom/sandboxol/greendao/entity/Friend;
move-result-object v0
if-eqz v0, :cond_1b
.line 3
iget-object v1, p0, Lcom/sandboxol/greendao/c/E;->a:Lcom/sandboxol/greendao/entity/Friend;
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/Friend;->getID()Ljava/lang/Long;
move-result-object v0
invoke-virtual {v1, v0}, Lcom/sandboxol/greendao/entity/Friend;->setID(Ljava/lang/Long;)V
.line 4
:cond_1b
iget-object v0, p0, Lcom/sandboxol/greendao/c/E;->a:Lcom/sandboxol/greendao/entity/Friend;
iget-object v1, p0, Lcom/sandboxol/greendao/c/E;->c:Lcom/sandboxol/greendao/c/H;
invoke-static {v1}, Lcom/sandboxol/greendao/c/H;->a(Lcom/sandboxol/greendao/c/H;)J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/sandboxol/greendao/entity/Friend;->setLocalUserId(J)V
.line 5
iget-object v0, p0, Lcom/sandboxol/greendao/c/E;->c:Lcom/sandboxol/greendao/c/H;
invoke-virtual {v0}, Lcom/sandboxol/greendao/c/H;->getDao()Lcom/sandboxol/greendao/entity/FriendDao;
move-result-object v0
iget-object v1, p0, Lcom/sandboxol/greendao/c/E;->a:Lcom/sandboxol/greendao/entity/Friend;
invoke-virtual {v0, v1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J
.line 6
iget-object v0, p0, Lcom/sandboxol/greendao/c/E;->a:Lcom/sandboxol/greendao/entity/Friend;
return-object v0
.end method
.method public bridge synthetic onExecute()Ljava/lang/Object;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/sandboxol/greendao/c/E;->onExecute()Lcom/sandboxol/greendao/entity/Friend;
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/Friend;
invoke-virtual {p0, p1}, Lcom/sandboxol/greendao/c/E;->a(Lcom/sandboxol/greendao/entity/Friend;)V
return-void
.end method