.class public Lcom/moji/member/adapter/MemberOrderAdapter;
.super Landroid/support/v7/widget/RecyclerView$Adapter;
.source "MemberOrderAdapter.java"

# interfaces
.implements Lcom/moji/member/adapter/MemberOrderClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/support/v7/widget/RecyclerView$Adapter<",
        "Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;",
        ">;",
        "Lcom/moji/member/adapter/MemberOrderClickListener;"
    }
.end annotation


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;",
            ">;"
        }
    .end annotation
.end field

.field private b:Lcom/moji/member/adapter/MemberOrderClickListener;


# direct methods
.method public constructor <init>(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;",
            ">;)V"
        }
    .end annotation

    .line 30
    invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$Adapter;-><init>()V

    .line 31
    iput-object p1, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->a:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 49
    iget-object v0, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->a:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->a:Ljava/util/List;

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

    move-result v0

    :goto_0
    return v0
.end method

.method public synthetic a(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 27
    invoke-virtual {p0, p1, p2}, Lcom/moji/member/adapter/MemberOrderAdapter;->c(Landroid/view/ViewGroup;I)Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public bridge synthetic a(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
    .locals 0

    .line 27
    check-cast p1, Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/moji/member/adapter/MemberOrderAdapter;->a(Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;I)V

    return-void
.end method

.method public a(Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;I)V
    .locals 1

    .line 42
    iget-object v0, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->a:Ljava/util/List;

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

    move-result v0

    if-ge p2, v0, :cond_0

    .line 43
    iget-object v0, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->a:Ljava/util/List;

    invoke-virtual {p1, v0, p2}, Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;->a(Ljava/util/List;I)V

    :cond_0
    return-void
.end method

.method public a(Lcom/moji/member/adapter/MemberOrderClickListener;)V
    .locals 0

    .line 53
    iput-object p1, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->b:Lcom/moji/member/adapter/MemberOrderClickListener;

    return-void
.end method

.method public c(Landroid/view/ViewGroup;I)Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;
    .locals 2

    .line 36
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    sget v0, Lcom/moji/member/R$layout;->item_member_order:I

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 37
    new-instance p2, Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;

    invoke-direct {p2, p0, p1, p0}, Lcom/moji/member/adapter/MemberOrderAdapter$MemberOrderViewHolder;-><init>(Lcom/moji/member/adapter/MemberOrderAdapter;Landroid/view/View;Lcom/moji/member/adapter/MemberOrderClickListener;)V

    return-object p2
.end method

.method public onclick(Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;)V
    .locals 1

    .line 58
    iget-object v0, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->b:Lcom/moji/member/adapter/MemberOrderClickListener;

    if-eqz v0, :cond_0

    .line 59
    iget-object v0, p0, Lcom/moji/member/adapter/MemberOrderAdapter;->b:Lcom/moji/member/adapter/MemberOrderClickListener;

    invoke-interface {v0, p1}, Lcom/moji/member/adapter/MemberOrderClickListener;->onclick(Lcom/moji/http/msc/entity/MemberPrice$MemberPriceDetail;)V

    :cond_0
    return-void
.end method
