RequestImpl.smali

.class public final Lzlc/season/rxdownload4/download/request/RequestImpl;
.super Ljava/lang/Object;
.source "RequestImpl.kt"

# interfaces
.implements Lzlc/season/rxdownload4/download/request/a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lzlc/season/rxdownload4/download/request/RequestImpl$Api;
    }
.end annotation


# static fields
.field private static final a:Lzlc/season/rxdownload4/download/request/RequestImpl$Api;

.field public static final b:Lzlc/season/rxdownload4/download/request/RequestImpl;


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

    .line 1
    new-instance v0, Lzlc/season/rxdownload4/download/request/RequestImpl;

    invoke-direct {v0}, Lzlc/season/rxdownload4/download/request/RequestImpl;-><init>()V

    sput-object v0, Lzlc/season/rxdownload4/download/request/RequestImpl;->b:Lzlc/season/rxdownload4/download/request/RequestImpl;

    .line 2
    invoke-static {}, Lzlc/season/rxdownload4/download/request/b;->a()Lokhttp3/z;

    move-result-object v0

    .line 3
    invoke-static {}, Lio/reactivex/f/b;->b()Lio/reactivex/x;

    move-result-object v1

    invoke-static {v1}, Lretrofit2/adapter/rxjava2/RxJava2CallAdapterFactory;->createWithScheduler(Lio/reactivex/x;)Lretrofit2/adapter/rxjava2/RxJava2CallAdapterFactory;

    move-result-object v1

    const-string v2, "RxJava2CallAdapterFactor\u2026cheduler(Schedulers.io())"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 4
    invoke-static {}, Lretrofit2/converter/gson/GsonConverterFactory;->create()Lretrofit2/converter/gson/GsonConverterFactory;

    move-result-object v2

    const-string v3, "GsonConverterFactory.create()"

    invoke-static {v2, v3}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 5
    new-instance v3, Lretrofit2/Retrofit$Builder;

    invoke-direct {v3}, Lretrofit2/Retrofit$Builder;-><init>()V

    const-string v4, "http://www.example.com"

    .line 6
    invoke-virtual {v3, v4}, Lretrofit2/Retrofit$Builder;->baseUrl(Ljava/lang/String;)Lretrofit2/Retrofit$Builder;

    move-result-object v3

    .line 7
    invoke-virtual {v3, v0}, Lretrofit2/Retrofit$Builder;->client(Lokhttp3/z;)Lretrofit2/Retrofit$Builder;

    move-result-object v0

    .line 8
    invoke-virtual {v0, v1}, Lretrofit2/Retrofit$Builder;->addCallAdapterFactory(Lretrofit2/CallAdapter$Factory;)Lretrofit2/Retrofit$Builder;

    move-result-object v0

    .line 9
    invoke-virtual {v0, v2}, Lretrofit2/Retrofit$Builder;->addConverterFactory(Lretrofit2/Converter$Factory;)Lretrofit2/Retrofit$Builder;

    move-result-object v0

    .line 10
    invoke-virtual {v0}, Lretrofit2/Retrofit$Builder;->build()Lretrofit2/Retrofit;

    move-result-object v0

    .line 11
    const-class v1, Lzlc/season/rxdownload4/download/request/RequestImpl$Api;

    invoke-virtual {v0, v1}, Lretrofit2/Retrofit;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lzlc/season/rxdownload4/download/request/RequestImpl$Api;

    sput-object v0, Lzlc/season/rxdownload4/download/request/RequestImpl;->a:Lzlc/season/rxdownload4/download/request/RequestImpl$Api;

    return-void
.end method

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

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public get(Ljava/lang/String;Ljava/util/Map;)Lio/reactivex/e;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Lio/reactivex/e<",
            "Lretrofit2/Response<",
            "Lokhttp3/J;",
            ">;>;"
        }
    .end annotation

    const-string v0, "url"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->d(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "headers"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/i;->d(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    sget-object v0, Lzlc/season/rxdownload4/download/request/RequestImpl;->a:Lzlc/season/rxdownload4/download/request/RequestImpl$Api;

    invoke-interface {v0, p1, p2}, Lzlc/season/rxdownload4/download/request/RequestImpl$Api;->get(Ljava/lang/String;Ljava/util/Map;)Lio/reactivex/e;

    move-result-object p1

    return-object p1
.end method