// Path: app/src/main/java/com/tryouts/courierapplication/presenters/PricelistPresenter.java
// public class PricelistPresenter {
// 
//     private PricelistInteractor mModel;
//     private PricelistFragment mView;
// 
//     public PricelistPresenter(PricelistFragment pricelistFragment) {
//         this.mModel = new PricelistInteractor(this);
//         this.mView = pricelistFragment;
//     }
// 
//     /**
//      * Called from PricelistFragment
//      * Sets adapter for @param.
//      * @param
//      */
//     public void initialize() {
//         mModel.setContext(mView.getContextFromFragment());
//         mModel.onPrepareRecyclerView(mView.getRecyclerView());
//     }
// 
//     public void detachView() {
//         mView = null;
//     }
// 
// }


import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.tryouts.courierapplication.presenters.PricelistPresenter;
import com.tryouts.courierapplication.R;
package com.tryouts.courierapplication.fragments;


public class PricelistFragment extends Fragment {

    private RecyclerView mRecyclerView;
    private PricelistPresenter mPresenter;

    public PricelistFragment() {
    }

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

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_pricelist, container, false);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        mRecyclerView = (RecyclerView) view.findViewById(R.id.pricelist_recyclerview);

// Path: app/src/main/java/com/tryouts/courierapplication/presenters/PricelistPresenter.java
// public class PricelistPresenter {
// 
//     private PricelistInteractor mModel;
//     private PricelistFragment mView;
// 
//     public PricelistPresenter(PricelistFragment pricelistFragment) {
//         this.mModel = new PricelistInteractor(this);
//         this.mView = pricelistFragment;
//     }
// 
//     /**
//      * Called from PricelistFragment
//      * Sets adapter for @param.
//      * @param
//      */
//     public void initialize() {
//         mModel.setContext(mView.getContextFromFragment());
//         mModel.onPrepareRecyclerView(mView.getRecyclerView());
//     }
// 
//     public void detachView() {
//         mView = null;
//     }
// 
// }


// Path: app/src/main/java/com/tryouts/courierapplication/fragments/PricelistFragment.java
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.tryouts.courierapplication.presenters.PricelistPresenter;
import com.tryouts.courierapplication.R;

package com.tryouts.courierapplication.fragments;


public class PricelistFragment extends Fragment {

    private RecyclerView mRecyclerView;
    private PricelistPresenter mPresenter;

    public PricelistFragment() {
    }

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

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_pricelist, container, false);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        mRecyclerView = (RecyclerView) view.findViewById(R.id.pricelist_recyclerview);

        mPresenter = new PricelistPresenter(this);