.class Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;
.super Ljava/lang/Object;
.source "StreamViewHolder.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/feed/cards/StreamViewHolder;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

.field final synthetic b:Lcom/moji/mjweather/feed/cards/StreamTag;

.field final synthetic c:Lcom/moji/mjweather/feed/cards/StreamViewHolder;


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    .line 52
    invoke-static {}, Lcom/moji/mjweather/feed/utils/EventUtils;->a()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 53
    new-instance p1, Lorg/json/JSONObject;

    invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v0, "property1"

    .line 55
    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

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

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "property2"

    .line 56
    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-wide v1, v1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->previous_feed_id:J

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "property3"

    .line 57
    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-wide v1, v1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->next_feed_id:J

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "StreamViewHolder"

    .line 59
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 61
    :goto_0
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->FEEDS_INDEX_CLICK:Lcom/moji/statistics/EVENT_TAG;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, ""

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

    iget-object v3, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

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

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

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

    move-result-object v2

    invoke-virtual {v0, v1, v2, p1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    .line 62
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->c:Lcom/moji/mjweather/feed/cards/StreamViewHolder;

    iget-object v0, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->c:Lcom/moji/mjweather/feed/cards/StreamViewHolder;

    invoke-static {v0}, Lcom/moji/mjweather/feed/cards/StreamViewHolder;->a(Lcom/moji/mjweather/feed/cards/StreamViewHolder;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/feed/cards/StreamViewHolder;->a(Landroid/content/Context;Lcom/moji/http/fdsapi/entity/cards/FeedBean;)V

    .line 63
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    const/4 v0, 0x1

    iput-boolean v0, p1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->clicked:Z

    .line 64
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-object p1, p1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_icon_list:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    const/4 v0, 0x2

    const v1, 0x4dffffff    # 5.3687088E8f

    if-le p1, v0, :cond_0

    .line 65
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->b:Lcom/moji/mjweather/feed/cards/StreamTag;

    iget-object p1, p1, Lcom/moji/mjweather/feed/cards/StreamTag;->a:Landroid/widget/TextView;

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_1

    .line 67
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->b:Lcom/moji/mjweather/feed/cards/StreamTag;

    iget-object p1, p1, Lcom/moji/mjweather/feed/cards/StreamTag;->b:Landroid/widget/TextView;

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_1
    const-string p1, "\u672c\u5730"

    .line 69
    iget-object v0, p0, Lcom/moji/mjweather/feed/cards/StreamViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

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

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

    move-result p1

    if-eqz p1, :cond_2

    .line 70
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object p1

    .line 71
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->FEEDS_INDEX_LOCAL_CLICK:Lcom/moji/statistics/EVENT_TAG;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, ""

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

    if-eqz p1, :cond_1

    iget p1, p1, Lcom/moji/common/area/AreaInfo;->cityId:I

    goto :goto_2

    :cond_1
    const/4 p1, -0x1

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

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

    move-result-object p1

    invoke-virtual {v0, v1, p1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    :cond_2
    return-void
.end method
