.class public Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;
.super Landroid/support/v7/widget/RecyclerView$ViewHolder;
.source "BaseFeedViewHolder.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<E:",
        "Lcom/moji/http/fdsapi/entity/cards/BaseCard;",
        ">",
        "Landroid/support/v7/widget/RecyclerView$ViewHolder;"
    }
.end annotation


# direct methods
.method private a(Landroid/content/Context;JLjava/lang/String;)V
    .locals 4

    .line 112
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/moji/mjweather/feed/ZakerDetailsActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 113
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x5

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    .line 114
    invoke-virtual {v1}, Landroid/os/Bundle;->clear()V

    const-string v2, "feeddetail_feed_id"

    .line 115
    new-instance v3, Ljava/lang/Long;

    invoke-direct {v3, p2, p3}, Ljava/lang/Long;-><init>(J)V

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide p2

    invoke-virtual {v1, v2, p2, p3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    const-string p2, "feeddetail_title"

    const-string p3, "\u58a8\u8ff9\u8d44\u8baf"

    .line 116
    invoke-virtual {v1, p2, p3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string p2, "feeddetail_rec_json"

    .line 117
    invoke-virtual {v1, p2, p4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string p2, "feeddetail_from_type"

    .line 118
    new-instance p3, Ljava/lang/Integer;

    const/4 p4, -0x1

    invoke-direct {p3, p4}, Ljava/lang/Integer;-><init>(I)V

    invoke-virtual {p3}, Ljava/lang/Integer;->intValue()I

    move-result p3

    invoke-virtual {v1, p2, p3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 119
    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 120
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

    .line 95
    new-instance v0, Lcom/moji/open/OpenNewPage;

    invoke-direct {v0, p1}, Lcom/moji/open/OpenNewPage;-><init>(Landroid/content/Context;)V

    .line 96
    invoke-virtual {v0, p2}, Lcom/moji/open/OpenNewPage;->b(Ljava/lang/String;)V

    return-void
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    .line 133
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/moji/webview/BrowserActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 134
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x5

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    const-string v2, "target_url"

    .line 135
    invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string p2, "title"

    const-string v2, "\u58a8\u8ff9\u8d44\u8baf"

    .line 136
    invoke-virtual {v1, p2, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 137
    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 138
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private c(Landroid/content/Context;Lcom/moji/http/fdsapi/entity/cards/FeedBean;)V
    .locals 2

    .line 100
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->wap_type:I

    if-nez v0, :cond_0

    .line 101
    iget-wide v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_id:J

    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->rec_json:Ljava/lang/String;

    invoke-direct {p0, p1, v0, v1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->a(Landroid/content/Context;JLjava/lang/String;)V

    goto :goto_0

    .line 102
    :cond_0
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->wap_type:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 103
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_url:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->b(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 104
    :cond_1
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->wap_type:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 105
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_url:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->c(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 106
    :cond_2
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->wap_type:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_3

    .line 107
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->h5_url:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->d(Landroid/content/Context;Ljava/lang/String;)V

    :cond_3
    :goto_0
    return-void
.end method

.method private c(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 142
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/high16 v1, 0x10000000

    .line 143
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 144
    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p2

    invoke-virtual {v0, p2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 145
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private d(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

    .line 149
    new-instance v0, Lcom/moji/credit/util/GoToCreditPage;

    invoke-direct {v0}, Lcom/moji/credit/util/GoToCreditPage;-><init>()V

    invoke-virtual {v0, p2, p1}, Lcom/moji/credit/util/GoToCreditPage;->b(Ljava/lang/String;Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method protected a(Landroid/content/Context;Lcom/moji/http/fdsapi/entity/cards/FeedBean;)V
    .locals 2

    .line 61
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->type:I

    const/16 v1, 0x65

    if-ne v0, v1, :cond_0

    .line 62
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->native_param:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 63
    :cond_0
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->type:I

    const/16 v1, 0x66

    if-ne v0, v1, :cond_1

    .line 64
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->h5_url:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->b(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 65
    :cond_1
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->type:I

    const/16 v1, 0x67

    if-ne v0, v1, :cond_2

    .line 66
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->native_param:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 67
    :cond_2
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->type:I

    const/16 v1, 0x68

    if-ne v0, v1, :cond_3

    .line 68
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->native_param:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 69
    :cond_3
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->type:I

    const/16 v1, 0x69

    if-ne v0, v1, :cond_4

    .line 70
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->h5_url:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->d(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 71
    :cond_4
    iget v0, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->type:I

    const/16 v1, 0x6a

    if-ne v0, v1, :cond_5

    .line 72
    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->native_param:Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 74
    :cond_5
    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/feed/cards/BaseFeedViewHolder;->c(Landroid/content/Context;Lcom/moji/http/fdsapi/entity/cards/FeedBean;)V

    :goto_0
    return-void
.end method

.method protected b(Landroid/content/Context;Lcom/moji/http/fdsapi/entity/cards/FeedBean;)V
    .locals 6

    .line 81
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 82
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x5

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    const-string v2, "feeddetail_feed_id"

    .line 83
    new-instance v3, Ljava/lang/Long;

    iget-wide v4, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_id:J

    invoke-direct {v3, v4, v5}, Ljava/lang/Long;-><init>(J)V

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    const-string v2, "feeddetail_title"

    const-string v3, "\u58a8\u8ff9\u8d44\u8baf"

    .line 84
    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "feeddetail_rec_json"

    .line 85
    iget-object v3, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->rec_json:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "feeddetail_feed_url"

    .line 86
    iget-object v3, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_url:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "feeddetail_height"

    .line 87
    iget v3, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->video_h:I

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v2, "feeddetail_width"

    .line 88
    iget p2, p2, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->video_w:I

    invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p2, "feeddetail_from_type"

    const/4 v2, -0x1

    .line 89
    invoke-virtual {v1, p2, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 90
    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 91
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
