.class public Lcom/moji/skinshop/SkinCategoryFragment;
.super Lcom/moji/skinshop/SkinBaseFragment;
.source "SkinCategoryFragment.java"


# instance fields
.field private u:Ljava/lang/String;

.field private v:Ljava/lang/Boolean;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 33
    invoke-direct {p0}, Lcom/moji/skinshop/SkinBaseFragment;-><init>()V

    const/4 v0, 0x0

    .line 95
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/skinshop/SkinCategoryFragment;->v:Ljava/lang/Boolean;

    return-void
.end method

.method static synthetic a(Lcom/moji/skinshop/SkinCategoryFragment;Ljava/lang/Boolean;)Ljava/lang/Boolean;
    .locals 0

    .line 33
    iput-object p1, p0, Lcom/moji/skinshop/SkinCategoryFragment;->v:Ljava/lang/Boolean;

    return-object p1
.end method

.method private a(II)Ljava/lang/String;
    .locals 2

    .line 52
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "/skin/SkinListByClassID?"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 53
    invoke-static {}, Lcom/moji/skinshop/util/Util;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "&From="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, "&To="

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, "&ClassID="

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Lcom/moji/skinshop/SkinCategoryFragment;->u:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "&Width="

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 56
    invoke-static {}, Lcom/moji/skinshop/util/Util;->b()I

    move-result p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, "&Height="

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 57
    invoke-static {}, Lcom/moji/skinshop/util/Util;->c()I

    move-result p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private j()V
    .locals 2

    .line 97
    new-instance v0, Lcom/moji/http/payload/AllHasPaySkinRequest;

    iget-object v1, p0, Lcom/moji/skinshop/SkinCategoryFragment;->s:Lcom/moji/skinshop/preference/SkinShopPref;

    invoke-virtual {v1}, Lcom/moji/skinshop/preference/SkinShopPref;->l()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/http/payload/AllHasPaySkinRequest;-><init>(Ljava/lang/String;)V

    new-instance v1, Lcom/moji/skinshop/SkinCategoryFragment$1;

    invoke-direct {v1, p0}, Lcom/moji/skinshop/SkinCategoryFragment$1;-><init>(Lcom/moji/skinshop/SkinCategoryFragment;)V

    invoke-virtual {v0, v1}, Lcom/moji/http/payload/AllHasPaySkinRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 0

    return-void
.end method

.method protected a(Lcom/moji/skinshop/SkinBaseFragment$BannerViewCallback;)V
    .locals 1

    const/4 v0, 0x0

    .line 77
    invoke-interface {p1, v0}, Lcom/moji/skinshop/SkinBaseFragment$BannerViewCallback;->a(Landroid/view/View;)Z

    return-void
.end method

.method protected b()Ljava/util/List;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/skinshop/entiy/SkinSDInfo;",
            ">;"
        }
    .end annotation

    .line 62
    iget v0, p0, Lcom/moji/skinshop/SkinCategoryFragment;->h:I

    iget v1, p0, Lcom/moji/skinshop/SkinCategoryFragment;->i:I

    invoke-direct {p0, v0, v1}, Lcom/moji/skinshop/SkinCategoryFragment;->a(II)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    .line 65
    :try_start_0
    new-instance v2, Lcom/moji/http/skinstore/GetSkinsRequest;

    invoke-direct {v2, v0}, Lcom/moji/http/skinstore/GetSkinsRequest;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Lcom/moji/http/skinstore/GetSkinsRequest;->f()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v2, "<status rc=\"2\" msg=\"\u7a7a\u7ed3\u679c\u96c6\"/>"

    .line 66
    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v1

    .line 69
    :cond_0
    invoke-static {}, Lcom/moji/skinshop/entiy/SkinPullParser;->a()Lcom/moji/skinshop/entiy/SkinPullParser;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/moji/skinshop/entiy/SkinPullParser;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    return-object v1
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2

    .line 47
    invoke-virtual {p0}, Lcom/moji/skinshop/SkinCategoryFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "classID"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/skinshop/SkinCategoryFragment;->u:Ljava/lang/String;

    .line 48
    invoke-super {p0, p1, p2, p3}, Lcom/moji/skinshop/SkinBaseFragment;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method public skinYetBuyEvent(Ljava/lang/String;)V
    .locals 1
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 90
    sget-object v0, Lcom/moji/skinshop/entiy/BusEvent;->SKIN_YET_BUY_EVENT:Lcom/moji/skinshop/entiy/BusEvent;

    invoke-virtual {v0}, Lcom/moji/skinshop/entiy/BusEvent;->name()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 91
    invoke-direct {p0}, Lcom/moji/skinshop/SkinCategoryFragment;->j()V

    :cond_0
    return-void
.end method
