// Path: ParallelRequests/app/src/main/java/itis/homework/parallelrequests/app/AppDelegate.java
// public class AppDelegate extends Application {
// 
//     private RequestsService mRequestsService;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mRequestsService = new RequestProcessor(new RequestControllerImpl());
//     }
// 
//     @NonNull
//     public static AppDelegate get(Context context) {
//         return ((AppDelegate) context.getApplicationContext());
//     }
// 
//     @NonNull
//     public RequestsService getRequestsService() {
//         return mRequestsService;
//     }
// }
// 
// Path: ParallelRequests/app/src/main/java/itis/homework/parallelrequests/network/RequestsService.java
// public interface RequestsService {
// 
//     Observable<Boolean> config();
// 
//     Observable<Boolean> auth();
// 
//     Observable<Boolean> friends();
// 
//     Observable<Boolean> posts();
// 
//     Observable<Boolean> groups();
// 
//     Observable<Boolean> messages();
// 
//     Observable<Boolean> photos();
// 
//     void reset();
// 
// }


import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import itis.homework.parallelrequests.app.AppDelegate;
import itis.homework.parallelrequests.network.RequestsService;
import rx.Observable;
import rx.schedulers.Schedulers;
package itis.homework.parallelrequests;



/**
 * @author Artur Vasilov
 */
public class MainFragment extends Fragment {

    private RequestsService mRequestsService;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

// Path: ParallelRequests/app/src/main/java/itis/homework/parallelrequests/app/AppDelegate.java
// public class AppDelegate extends Application {
// 
//     private RequestsService mRequestsService;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mRequestsService = new RequestProcessor(new RequestControllerImpl());
//     }
// 
//     @NonNull
//     public static AppDelegate get(Context context) {
//         return ((AppDelegate) context.getApplicationContext());
//     }
// 
//     @NonNull
//     public RequestsService getRequestsService() {
//         return mRequestsService;
//     }
// }
// 
// Path: ParallelRequests/app/src/main/java/itis/homework/parallelrequests/network/RequestsService.java
// public interface RequestsService {
// 
//     Observable<Boolean> config();
// 
//     Observable<Boolean> auth();
// 
//     Observable<Boolean> friends();
// 
//     Observable<Boolean> posts();
// 
//     Observable<Boolean> groups();
// 
//     Observable<Boolean> messages();
// 
//     Observable<Boolean> photos();
// 
//     void reset();
// 
// }


// Path: ParallelRequests/app/src/main/java/itis/homework/parallelrequests/MainFragment.java
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import itis.homework.parallelrequests.app.AppDelegate;
import itis.homework.parallelrequests.network.RequestsService;
import rx.Observable;
import rx.schedulers.Schedulers;

package itis.homework.parallelrequests;



/**
 * @author Artur Vasilov
 */
public class MainFragment extends Fragment {

    private RequestsService mRequestsService;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mRequestsService = AppDelegate.get(getActivity()).getRequestsService();