// Generated by Dagger (https://google.github.io/dagger).
package net.letime.lecjoa.di;

import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
import net.letime.lecjoa.network.MastodonApi;
import retrofit2.Retrofit;

public final class NetworkModule_ProvidesApiFactory implements Factory<MastodonApi> {
  private final NetworkModule module;

  private final Provider<Retrofit> retrofitProvider;

  public NetworkModule_ProvidesApiFactory(
      NetworkModule module, Provider<Retrofit> retrofitProvider) {
    this.module = module;
    this.retrofitProvider = retrofitProvider;
  }

  @Override
  public MastodonApi get() {
    return provideInstance(module, retrofitProvider);
  }

  public static MastodonApi provideInstance(
      NetworkModule module, Provider<Retrofit> retrofitProvider) {
    return proxyProvidesApi(module, retrofitProvider.get());
  }

  public static NetworkModule_ProvidesApiFactory create(
      NetworkModule module, Provider<Retrofit> retrofitProvider) {
    return new NetworkModule_ProvidesApiFactory(module, retrofitProvider);
  }

  public static MastodonApi proxyProvidesApi(NetworkModule instance, Retrofit retrofit) {
    return Preconditions.checkNotNull(
        instance.providesApi(retrofit), "Cannot return null from a non-@Nullable @Provides method");
  }
}
