WireConverterFactory.smali

.class public final Lretrofit2/converter/wire/WireConverterFactory;
.super Lretrofit2/Converter$Factory;


# direct methods
.method private constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lretrofit2/Converter$Factory;-><init>()V

    return-void
.end method

.method public static f()Lretrofit2/converter/wire/WireConverterFactory;
    .registers 1

    new-instance v0, Lretrofit2/converter/wire/WireConverterFactory;

    invoke-direct {v0}, Lretrofit2/converter/wire/WireConverterFactory;-><init>()V

    return-object v0
.end method


# virtual methods
.method public c(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;[Ljava/lang/annotation/Annotation;Lretrofit2/Retrofit;)Lretrofit2/Converter;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lretrofit2/Retrofit;",
            ")",
            "Lretrofit2/Converter<",
            "*",
            "Lokhttp3/RequestBody;",
            ">;"
        }
    .end annotation

    instance-of p2, p1, Ljava/lang/Class;

    const/4 p3, 0x0

    if-nez p2, :cond_6

    return-object p3

    :cond_6
    check-cast p1, Ljava/lang/Class;

    const-class p2, Lcom/squareup/wire/Message;

    invoke-virtual {p2, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result p2

    if-nez p2, :cond_11

    return-object p3

    :cond_11
    invoke-static {p1}, Lcom/squareup/wire/ProtoAdapter;->get(Ljava/lang/Class;)Lcom/squareup/wire/ProtoAdapter;

    move-result-object p1

    new-instance p2, Lretrofit2/converter/wire/WireRequestBodyConverter;

    invoke-direct {p2, p1}, Lretrofit2/converter/wire/WireRequestBodyConverter;-><init>(Lcom/squareup/wire/ProtoAdapter;)V

    return-object p2
.end method

.method public d(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lretrofit2/Retrofit;)Lretrofit2/Converter;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lretrofit2/Retrofit;",
            ")",
            "Lretrofit2/Converter<",
            "Lokhttp3/ResponseBody;",
            "*>;"
        }
    .end annotation

    instance-of p2, p1, Ljava/lang/Class;

    const/4 p3, 0x0

    if-nez p2, :cond_6

    return-object p3

    :cond_6
    check-cast p1, Ljava/lang/Class;

    const-class p2, Lcom/squareup/wire/Message;

    invoke-virtual {p2, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result p2

    if-nez p2, :cond_11

    return-object p3

    :cond_11
    invoke-static {p1}, Lcom/squareup/wire/ProtoAdapter;->get(Ljava/lang/Class;)Lcom/squareup/wire/ProtoAdapter;

    move-result-object p1

    new-instance p2, Lretrofit2/converter/wire/WireResponseBodyConverter;

    invoke-direct {p2, p1}, Lretrofit2/converter/wire/WireResponseBodyConverter;-><init>(Lcom/squareup/wire/ProtoAdapter;)V

    return-object p2
.end method