.class final Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;
.super Lcom/squareup/moshi/h;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "TimelineObjectJsonAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/squareup/moshi/h<",
        "Lcom/tumblr/rumblr/model/TimelineObject<",
        "*>;>;"
    }
.end annotation

.annotation runtime Lkotlin/Metadata;
    d1 = {
        "\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0008\u0002\u0018\u00002\u000e\u0012\n\u0012\u0008\u0012\u0002\u0008\u0003\u0018\u00010\u00020\u0001B#\u0012\u000c\u0010\u000f\u001a\u0008\u0012\u0004\u0012\u00020\u000b0\u0001\u0012\u000c\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00020\u00100\u0001\u00a2\u0006\u0004\u0008\u0013\u0010\u0014J\u0016\u0010\u0005\u001a\u0008\u0012\u0002\u0008\u0003\u0018\u00010\u00022\u0006\u0010\u0004\u001a\u00020\u0003H\u0016J\u001e\u0010\n\u001a\u00020\t2\u0006\u0010\u0007\u001a\u00020\u00062\u000c\u0010\u0008\u001a\u0008\u0012\u0002\u0008\u0003\u0018\u00010\u0002H\u0016R\u001d\u0010\u000f\u001a\u0008\u0012\u0004\u0012\u00020\u000b0\u00018\u0006\u00a2\u0006\u000c\n\u0004\u0008\u0005\u0010\u000c\u001a\u0004\u0008\r\u0010\u000eR\u001d\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00020\u00100\u00018\u0006\u00a2\u0006\u000c\n\u0004\u0008\n\u0010\u000c\u001a\u0004\u0008\u0011\u0010\u000e\u00a8\u0006\u0015"
    }
    d2 = {
        "Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;",
        "Lcom/squareup/moshi/h;",
        "Lcom/tumblr/rumblr/model/TimelineObject;",
        "Lcom/squareup/moshi/k;",
        "reader",
        "a",
        "Lcom/squareup/moshi/q;",
        "writer",
        "value",
        "Ldh0/f0;",
        "b",
        "Lcom/tumblr/rumblr/model/Timelineable;",
        "Lcom/squareup/moshi/h;",
        "getTimelineableAdapter",
        "()Lcom/squareup/moshi/h;",
        "timelineableAdapter",
        "Lcom/tumblr/rumblr/model/TimelineObjectMetadata;",
        "getTimelineMetadataAdapter",
        "timelineMetadataAdapter",
        "<init>",
        "(Lcom/squareup/moshi/h;Lcom/squareup/moshi/h;)V",
        "rumblr_release"
    }
    k = 0x1
    mv = {
        0x1,
        0x9,
        0x0
    }
.end annotation


# instance fields
.field private final a:Lcom/squareup/moshi/h;

.field private final b:Lcom/squareup/moshi/h;


# direct methods
.method public constructor <init>(Lcom/squareup/moshi/h;Lcom/squareup/moshi/h;)V
    .locals 1

    const-string v0, "timelineableAdapter"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "timelineMetadataAdapter"

    invoke-static {p2, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/squareup/moshi/h;-><init>()V

    iput-object p1, p0, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;->a:Lcom/squareup/moshi/h;

    iput-object p2, p0, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;->b:Lcom/squareup/moshi/h;

    return-void
.end method


# virtual methods
.method public a(Lcom/squareup/moshi/k;)Lcom/tumblr/rumblr/model/TimelineObject;
    .locals 4

    const-string v0, "reader"

    invoke-static {p1, v0}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/squareup/moshi/k;->B()Lcom/squareup/moshi/k;

    move-result-object v0

    const/4 v1, 0x0

    :try_start_0
    iget-object v2, p0, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;->a:Lcom/squareup/moshi/h;

    invoke-virtual {v2, v0}, Lcom/squareup/moshi/h;->fromJson(Lcom/squareup/moshi/k;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/tumblr/rumblr/model/Timelineable;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-class v2, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;

    invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "getSimpleName(...)"

    invoke-static {v2, v3}, Lqh0/s;->g(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v3, "Failed when parsed a JSON to Timelineable object"

    invoke-static {v2, v3, v0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    move-object v0, v1

    :goto_0
    iget-object v2, p0, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;->b:Lcom/squareup/moshi/h;

    invoke-virtual {v2, p1}, Lcom/squareup/moshi/h;->fromJson(Lcom/squareup/moshi/k;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/tumblr/rumblr/model/TimelineObjectMetadata;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_0

    new-instance v1, Lcom/tumblr/rumblr/model/TimelineObject;

    invoke-direct {v1, p1, v0}, Lcom/tumblr/rumblr/model/TimelineObject;-><init>(Lcom/tumblr/rumblr/model/TimelineObjectMetadata;Lcom/tumblr/rumblr/model/Timelineable;)V

    :cond_0
    return-object v1
.end method

.method public b(Lcom/squareup/moshi/q;Lcom/tumblr/rumblr/model/TimelineObject;)V
    .locals 0

    const-string p2, "writer"

    invoke-static {p1, p2}, Lqh0/s;->h(Ljava/lang/Object;Ljava/lang/String;)V

    return-void
.end method

.method public bridge synthetic fromJson(Lcom/squareup/moshi/k;)Ljava/lang/Object;
    .locals 0

    invoke-virtual {p0, p1}, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;->a(Lcom/squareup/moshi/k;)Lcom/tumblr/rumblr/model/TimelineObject;

    move-result-object p1

## YKit-DashboardDeclutter
    if-eqz p1, :skip_dashboardDeclutter
    check-cast p1, Lcom/tumblr/rumblr/model/TimelineObject;
    invoke-static {p1}, Ldev/maelstrom/ykit/DashboardDeclutterShim;->filterObject(Lcom/tumblr/rumblr/model/TimelineObject;)Lcom/tumblr/rumblr/model/TimelineObject;
    move-result-object p1
    :skip_dashboardDeclutter
## /YKit-DashboardDeclutter

    return-object p1
.end method

.method public bridge synthetic toJson(Lcom/squareup/moshi/q;Ljava/lang/Object;)V
    .locals 0

    check-cast p2, Lcom/tumblr/rumblr/model/TimelineObject;

    invoke-virtual {p0, p1, p2}, Lcom/tumblr/rumblr/moshi/TimelineObjectAdapterFactory$TimelineObjectJsonAdapter;->b(Lcom/squareup/moshi/q;Lcom/tumblr/rumblr/model/TimelineObject;)V

    return-void
.end method
