// Path: app/src/main/java/com/asanchezyu/retrofitsoap/RetrofitSoapApplication.java
// public class RetrofitSoapApplication extends Application {
// 
//     private ApplicationComponent component;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         component =  DaggerApplicationComponent.builder()
//                 .applicationModule( new ApplicationModule(this))
//                 .build();
//     }
// 
//     public ApplicationComponent getComponent() {
//         return component;
//     }
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/api/UsStatesApi.java
// public interface UsStatesApi {
// 
//     @Headers({
//             "Content-Type: text/xml",
//             "Accept-Charset: utf-8"
//     })
//     @POST("/uszip.asmx")
//     Call<UsStatesResponseEnvelope> requestStateInfo(@Body UsStatesRequestEnvelope body);
// 
// }


import dagger.Provides;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;
import com.asanchezyu.retrofitsoap.RetrofitSoapApplication;
import com.asanchezyu.retrofitsoap.api.UsStatesApi;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.convert.AnnotationStrategy;
import org.simpleframework.xml.core.Persister;
import org.simpleframework.xml.strategy.Strategy;
import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;
import dagger.Module;
/*
 * Copyright 2016. Alejandro Sánchez
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.asanchezyu.retrofitsoap.injection.application;






/**
 * Class Description.
 *
 * @author asanchezyu@gmail.com.
 * @version 1.0.
 * @since 15/6/16.
 */
@Module
@Singleton
public class ApplicationModule {

// Path: app/src/main/java/com/asanchezyu/retrofitsoap/RetrofitSoapApplication.java
// public class RetrofitSoapApplication extends Application {
// 
//     private ApplicationComponent component;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         component =  DaggerApplicationComponent.builder()
//                 .applicationModule( new ApplicationModule(this))
//                 .build();
//     }
// 
//     public ApplicationComponent getComponent() {
//         return component;
//     }
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/api/UsStatesApi.java
// public interface UsStatesApi {
// 
//     @Headers({
//             "Content-Type: text/xml",
//             "Accept-Charset: utf-8"
//     })
//     @POST("/uszip.asmx")
//     Call<UsStatesResponseEnvelope> requestStateInfo(@Body UsStatesRequestEnvelope body);
// 
// }


// Path: app/src/main/java/com/asanchezyu/retrofitsoap/injection/application/ApplicationModule.java
import dagger.Provides;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;
import com.asanchezyu.retrofitsoap.RetrofitSoapApplication;
import com.asanchezyu.retrofitsoap.api.UsStatesApi;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.convert.AnnotationStrategy;
import org.simpleframework.xml.core.Persister;
import org.simpleframework.xml.strategy.Strategy;
import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;
import dagger.Module;

/*
 * Copyright 2016. Alejandro Sánchez
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.asanchezyu.retrofitsoap.injection.application;






/**
 * Class Description.
 *
 * @author asanchezyu@gmail.com.
 * @version 1.0.
 * @since 15/6/16.
 */
@Module
@Singleton
public class ApplicationModule {

    private RetrofitSoapApplication application;