a.smali

.class public final Lyq/a;
.super Lxq/h$a;
.source "GsonConverterFactory.java"


# instance fields
.field public final a:Lcom/google/gson/Gson;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lcom/google/gson/Gson;)V
    .registers 2

    invoke-direct {p0}, Lxq/h$a;-><init>()V

    iput-object p1, p0, Lyq/a;->a:Lcom/google/gson/Gson;

    return-void
.end method

.method public static a(Lcom/google/gson/Gson;)Lyq/a;
    .registers 2

    if-eqz p0, :cond_8

    new-instance v0, Lyq/a;

    invoke-direct {v0, p0}, Lyq/a;-><init>(Lcom/google/gson/Gson;)V

    return-object v0

    :cond_8
    new-instance p0, Ljava/lang/NullPointerException;

    const-string v0, "gson == null"

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

    throw p0
.end method


# virtual methods
.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lxq/u;)Lxq/h;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lxq/u;",
            ")",
            "Lxq/h<",
            "Lokhttp3/ResponseBody;",
            "*>;"
        }
    .end annotation

    iget-object p2, p0, Lyq/a;->a:Lcom/google/gson/Gson;

    invoke-static {p1}, Lv5/a;->get(Ljava/lang/reflect/Type;)Lv5/a;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/google/gson/Gson;->a(Lv5/a;)Lcom/google/gson/TypeAdapter;

    move-result-object p1

    new-instance p2, Lyq/c;

    iget-object p3, p0, Lyq/a;->a:Lcom/google/gson/Gson;

    invoke-direct {p2, p3, p1}, Lyq/c;-><init>(Lcom/google/gson/Gson;Lcom/google/gson/TypeAdapter;)V

    return-object p2
.end method

.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;Lxq/u;)Lxq/h;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lxq/u;",
            ")",
            "Lxq/h<",
            "*",
            "Lokhttp3/RequestBody;",
            ">;"
        }
    .end annotation

    iget-object p2, p0, Lyq/a;->a:Lcom/google/gson/Gson;

    invoke-static {p1}, Lv5/a;->get(Ljava/lang/reflect/Type;)Lv5/a;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/google/gson/Gson;->a(Lv5/a;)Lcom/google/gson/TypeAdapter;

    move-result-object p1

    new-instance p2, Lyq/b;

    iget-object p3, p0, Lyq/a;->a:Lcom/google/gson/Gson;

    invoke-direct {p2, p3, p1}, Lyq/b;-><init>(Lcom/google/gson/Gson;Lcom/google/gson/TypeAdapter;)V

    return-object p2
.end method