x.smali
.class public Lcom/sandboxol/repository/b/x;
.super Ljava/lang/Object;
.source "DressRepository.java"
# interfaces
.implements Lcom/sandboxol/repository/b/d;
# static fields
.field private static a:Lcom/sandboxol/repository/b/x;
# instance fields
.field private final b:Lcom/sandboxol/repository/b/d;
.field private final c:Lcom/sandboxol/repository/b/d;
.field private d:Z
.field private e:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;>;"
}
.end annotation
.end field
.field private f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SuitDressInfo;",
">;"
}
.end annotation
.end field
.field private g:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;"
}
.end annotation
.end field
.field private h:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SuitDressInfo;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/sandboxol/repository/b/d;Lcom/sandboxol/repository/b/d;)V
.registers 4
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/sandboxol/repository/b/x;->d:Z
.line 3
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/sandboxol/repository/b/x;->e:Ljava/util/Map;
.line 4
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sandboxol/repository/b/x;->f:Ljava/util/List;
.line 5
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sandboxol/repository/b/x;->g:Ljava/util/List;
.line 6
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sandboxol/repository/b/x;->h:Ljava/util/List;
.line 7
invoke-static {p1}, Lcom/google/common/base/r;->a(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Lcom/sandboxol/repository/b/d;
iput-object p1, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
.line 8
invoke-static {p2}, Lcom/google/common/base/r;->a(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p2, Lcom/sandboxol/repository/b/d;
iput-object p2, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
return-void
.end method
.method public static a(Lcom/sandboxol/repository/b/d;Lcom/sandboxol/repository/b/d;)Lcom/sandboxol/repository/b/x;
.registers 3
.line 5
sget-object v0, Lcom/sandboxol/repository/b/x;->a:Lcom/sandboxol/repository/b/x;
if-nez v0, :cond_b
.line 6
new-instance v0, Lcom/sandboxol/repository/b/x;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/repository/b/x;-><init>(Lcom/sandboxol/repository/b/d;Lcom/sandboxol/repository/b/d;)V
sput-object v0, Lcom/sandboxol/repository/b/x;->a:Lcom/sandboxol/repository/b/x;
.line 7
:cond_b
sget-object p0, Lcom/sandboxol/repository/b/x;->a:Lcom/sandboxol/repository/b/x;
return-object p0
.end method
.method private a(ILjava/util/List;)Ljava/util/List;
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;)",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;"
}
.end annotation
if-nez p1, :cond_3
return-object p2
.line 23
:cond_3
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
if-eqz p2, :cond_2d
.line 24
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
if-lez v1, :cond_2d
.line 25
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p2
:cond_14
:goto_14
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2d
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;
int-to-long v2, p1
.line 26
invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getTypeId()J
move-result-wide v4
cmp-long v6, v2, v4
if-nez v6, :cond_14
.line 27
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_14
:cond_2d
return-object v0
.end method
.method static synthetic a(Lcom/sandboxol/repository/b/x;ILjava/util/List;)Ljava/util/List;
.registers 3
.line 4
invoke-direct {p0, p1, p2}, Lcom/sandboxol/repository/b/x;->a(ILjava/util/List;)Ljava/util/List;
move-result-object p0
return-object p0
.end method
.method static synthetic a(Lcom/sandboxol/repository/b/x;Ljava/util/List;)Ljava/util/List;
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/sandboxol/repository/b/x;->a(Ljava/util/List;)Ljava/util/List;
move-result-object p0
return-object p0
.end method
.method private a(Ljava/util/List;)Ljava/util/List;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;)",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;"
}
.end annotation
if-nez p1, :cond_8
.line 28
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
return-object p1
.line 29
:cond_8
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 30
invoke-static {p1}, Lrx/Observable;->from(Ljava/lang/Iterable;)Lrx/Observable;
move-result-object p1
new-instance v1, Lcom/sandboxol/repository/b/b;
invoke-direct {v1, v0}, Lcom/sandboxol/repository/b/b;-><init>(Ljava/util/List;)V
sget-object v2, Lcom/sandboxol/repository/b/a;->a:Lcom/sandboxol/repository/b/a;
.line 31
invoke-virtual {p1, v1, v2}, Lrx/Observable;->subscribe(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
return-object v0
.end method
.method static synthetic a(Lcom/sandboxol/repository/b/x;)Ljava/util/Map;
.registers 1
.line 2
iget-object p0, p0, Lcom/sandboxol/repository/b/x;->e:Ljava/util/Map;
return-object p0
.end method
.method static synthetic a(Ljava/lang/Throwable;)V
.registers 1
.line 39
invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V
return-void
.end method
.method static synthetic a(Ljava/util/List;Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;)V
.registers 5
.line 32
new-instance v0, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;
invoke-direct {v0}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;-><init>()V
.line 33
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getId()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->setId(J)V
.line 34
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getIconUrl()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->setIconUrl(Ljava/lang/String;)V
.line 35
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getTypeId()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->setTypeId(J)V
.line 36
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getResourceId()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->setResourceId(Ljava/lang/String;)V
const/4 p1, 0x1
.line 37
invoke-virtual {v0, p1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->setHasPurchase(I)V
.line 38
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method static synthetic a(Lcom/sandboxol/repository/b/x;Z)Z
.registers 2
.line 3
iput-boolean p1, p0, Lcom/sandboxol/repository/b/x;->d:Z
return p1
.end method
.method static synthetic b(Lcom/sandboxol/repository/b/x;)Ljava/util/List;
.registers 1
.line 1
iget-object p0, p0, Lcom/sandboxol/repository/b/x;->f:Ljava/util/List;
return-object p0
.end method
.method static synthetic c(Lcom/sandboxol/repository/b/x;)Ljava/util/List;
.registers 1
.line 1
iget-object p0, p0, Lcom/sandboxol/repository/b/x;->g:Ljava/util/List;
return-object p0
.end method
.method static synthetic d(Lcom/sandboxol/repository/b/x;)Ljava/util/List;
.registers 1
.line 1
iget-object p0, p0, Lcom/sandboxol/repository/b/x;->h:Ljava/util/List;
return-object p0
.end method
# virtual methods
.method public a(ILcom/sandboxol/repository/b/d$c;)V
.registers 5
.line 8
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->e:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
if-lez v0, :cond_35
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->e:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_35
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->e:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_35
.line 9
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->e:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
invoke-interface {p2, v0}, Lcom/sandboxol/repository/b/d$c;->a(Ljava/util/List;)V
:cond_35
const/4 v0, 0x6
if-ne p1, v0, :cond_43
.line 10
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
new-instance v1, Lcom/sandboxol/repository/b/s;
invoke-direct {v1, p0, p1, p2}, Lcom/sandboxol/repository/b/s;-><init>(Lcom/sandboxol/repository/b/x;ILcom/sandboxol/repository/b/d$c;)V
invoke-interface {v0, p1, v1}, Lcom/sandboxol/repository/b/d;->b(ILcom/sandboxol/repository/b/d$c;)V
goto :goto_4d
.line 11
:cond_43
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
new-instance v1, Lcom/sandboxol/repository/b/t;
invoke-direct {v1, p0, p1, p2}, Lcom/sandboxol/repository/b/t;-><init>(Lcom/sandboxol/repository/b/x;ILcom/sandboxol/repository/b/d$c;)V
invoke-interface {v0, p1, v1}, Lcom/sandboxol/repository/b/d;->a(ILcom/sandboxol/repository/b/d$c;)V
:goto_4d
return-void
.end method
.method public a(ILcom/sandboxol/repository/b/d$d;)V
.registers 5
.line 12
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->f:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_d
.line 13
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->f:Ljava/util/List;
invoke-interface {p2, v0}, Lcom/sandboxol/repository/b/d$d;->a(Ljava/util/List;)V
.line 14
:cond_d
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
new-instance v1, Lcom/sandboxol/repository/b/u;
invoke-direct {v1, p0, p2}, Lcom/sandboxol/repository/b/u;-><init>(Lcom/sandboxol/repository/b/x;Lcom/sandboxol/repository/b/d$d;)V
invoke-interface {v0, p1, v1}, Lcom/sandboxol/repository/b/d;->a(ILcom/sandboxol/repository/b/d$d;)V
return-void
.end method
.method public a(Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;Lcom/sandboxol/repository/b/d$a;)V
.registers 4
.line 18
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1, p2}, Lcom/sandboxol/repository/b/d;->a(Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;Lcom/sandboxol/repository/b/d$a;)V
return-void
.end method
.method public a(Lcom/sandboxol/greendao/entity/dress/SuitDressInfo;Lcom/sandboxol/repository/b/d$a;)V
.registers 4
.line 19
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1, p2}, Lcom/sandboxol/repository/b/d;->a(Lcom/sandboxol/greendao/entity/dress/SuitDressInfo;Lcom/sandboxol/repository/b/d$a;)V
return-void
.end method
.method public a(Lcom/sandboxol/repository/b/d$b;)V
.registers 3
.line 21
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1}, Lcom/sandboxol/repository/b/d;->a(Lcom/sandboxol/repository/b/d$b;)V
return-void
.end method
.method public a(Lcom/sandboxol/repository/b/d$d;)V
.registers 4
.line 15
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->h:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_d
.line 16
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->h:Ljava/util/List;
invoke-interface {p1, v0}, Lcom/sandboxol/repository/b/d$d;->a(Ljava/util/List;)V
.line 17
:cond_d
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
new-instance v1, Lcom/sandboxol/repository/b/w;
invoke-direct {v1, p0, p1}, Lcom/sandboxol/repository/b/w;-><init>(Lcom/sandboxol/repository/b/x;Lcom/sandboxol/repository/b/d$d;)V
invoke-interface {v0, v1}, Lcom/sandboxol/repository/b/d;->a(Lcom/sandboxol/repository/b/d$d;)V
return-void
.end method
.method public a(Ljava/util/List;Lcom/sandboxol/repository/b/d$a;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SuitDressInfo;",
">;",
"Lcom/sandboxol/repository/b/d$a;",
")V"
}
.end annotation
.line 20
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1, p2}, Lcom/sandboxol/repository/b/d;->a(Ljava/util/List;Lcom/sandboxol/repository/b/d$a;)V
return-void
.end method
.method public a(Z)V
.registers 2
.line 22
iput-boolean p1, p0, Lcom/sandboxol/repository/b/x;->d:Z
return-void
.end method
.method public b(ILcom/sandboxol/repository/b/d$c;)V
.registers 6
.line 2
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->g:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_11
.line 3
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->g:Ljava/util/List;
invoke-direct {p0, p1, v0}, Lcom/sandboxol/repository/b/x;->a(ILjava/util/List;)Ljava/util/List;
move-result-object v0
invoke-interface {p2, v0}, Lcom/sandboxol/repository/b/d$c;->a(Ljava/util/List;)V
.line 4
:cond_11
iget-boolean v0, p0, Lcom/sandboxol/repository/b/x;->d:Z
if-eqz v0, :cond_20
.line 5
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->c:Lcom/sandboxol/repository/b/d;
const/4 v1, 0x0
new-instance v2, Lcom/sandboxol/repository/b/v;
invoke-direct {v2, p0, p2, p1}, Lcom/sandboxol/repository/b/v;-><init>(Lcom/sandboxol/repository/b/x;Lcom/sandboxol/repository/b/d$c;I)V
invoke-interface {v0, v1, v2}, Lcom/sandboxol/repository/b/d;->b(ILcom/sandboxol/repository/b/d$c;)V
:cond_20
return-void
.end method
.method public b(Lcom/sandboxol/repository/b/d$d;)V
.registers 3
.line 6
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1}, Lcom/sandboxol/repository/b/d;->b(Lcom/sandboxol/repository/b/d$d;)V
return-void
.end method
.method public b(Ljava/util/List;Lcom/sandboxol/repository/b/d$a;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/Long;",
">;",
"Lcom/sandboxol/repository/b/d$a;",
")V"
}
.end annotation
.line 7
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1, p2}, Lcom/sandboxol/repository/b/d;->b(Ljava/util/List;Lcom/sandboxol/repository/b/d$a;)V
return-void
.end method
.method public c(ILcom/sandboxol/repository/b/d$c;)V
.registers 4
.line 2
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1, p2}, Lcom/sandboxol/repository/b/d;->c(ILcom/sandboxol/repository/b/d$c;)V
return-void
.end method
.method public c(Ljava/util/List;Lcom/sandboxol/repository/b/d$a;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
">;",
"Lcom/sandboxol/repository/b/d$a;",
")V"
}
.end annotation
.line 3
iget-object v0, p0, Lcom/sandboxol/repository/b/x;->b:Lcom/sandboxol/repository/b/d;
invoke-interface {v0, p1, p2}, Lcom/sandboxol/repository/b/d;->c(Ljava/util/List;Lcom/sandboxol/repository/b/d$a;)V
return-void
.end method