f.smali

.class final Lcom/sandboxol/halloween/c/f;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "DressHelper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/halloween/c/h;->a(Landroid/content/Context;JLjava/util/List;)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/web/OnResponseListener<",
        "Ljava/util/List<",
        "Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
        ">;>;"
    }
.end annotation


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

.field final synthetic b:Landroid/content/Context;

.field final synthetic c:J


# direct methods
.method constructor <init>(Ljava/util/List;Landroid/content/Context;J)V
    .registers 5

    .line 1
    iput-object p1, p0, Lcom/sandboxol/halloween/c/f;->a:Ljava/util/List;

    iput-object p2, p0, Lcom/sandboxol/halloween/c/f;->b:Landroid/content/Context;

    iput-wide p3, p0, Lcom/sandboxol/halloween/c/f;->c:J

    invoke-direct {p0}, Lcom/sandboxol/common/base/web/OnResponseListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onError(ILjava/lang/String;)V
    .registers 3

    return-void
.end method

.method public onServerError(I)V
    .registers 2

    return-void
.end method

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

    .line 1
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/c/f;->onSuccess(Ljava/util/List;)V

    return-void
.end method

.method public onSuccess(Ljava/util/List;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_5c

    .line 2
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_5c

    iget-object v0, p0, Lcom/sandboxol/halloween/c/f;->a:Ljava/util/List;

    if-eqz v0, :cond_5c

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_5c

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

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

    move-result-object p1

    :cond_1b
    :goto_1b
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_43

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

    move-result-object v1

    check-cast v1, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;

    .line 5
    iget-object v2, p0, Lcom/sandboxol/halloween/c/f;->a:Ljava/util/List;

    invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getTypeId()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1b

    .line 6
    invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/dress/SingleDressInfo;->getId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1b

    .line 7
    :cond_43
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_54

    .line 8
    iget-object p1, p0, Lcom/sandboxol/halloween/c/f;->b:Landroid/content/Context;

    new-instance v1, Lcom/sandboxol/halloween/c/e;

    invoke-direct {v1, p0}, Lcom/sandboxol/halloween/c/e;-><init>(Lcom/sandboxol/halloween/c/f;)V

    invoke-static {p1, v0, v1}, Lcom/sandboxol/center/router/manager/DressManager;->unClotheMulti(Landroid/content/Context;Ljava/util/List;Lcom/sandboxol/common/base/web/OnResponseListener;)V

    goto :goto_63

    .line 9
    :cond_54
    iget-object p1, p0, Lcom/sandboxol/halloween/c/f;->b:Landroid/content/Context;

    iget-wide v0, p0, Lcom/sandboxol/halloween/c/f;->c:J

    invoke-static {p1, v0, v1}, Lcom/sandboxol/halloween/c/h;->a(Landroid/content/Context;J)V

    goto :goto_63

    .line 10
    :cond_5c
    iget-object p1, p0, Lcom/sandboxol/halloween/c/f;->b:Landroid/content/Context;

    iget-wide v0, p0, Lcom/sandboxol/halloween/c/f;->c:J

    invoke-static {p1, v0, v1}, Lcom/sandboxol/halloween/c/h;->a(Landroid/content/Context;J)V

    :goto_63
    return-void
.end method