// Path: app/src/main/java/com/tryouts/courierapplication/fragments/PricelistFragment.java
// 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);
//         mPresenter.initialize();
//     }
// 
//     public RecyclerView getRecyclerView() {
//         return mRecyclerView;
//     }
// 
//     public Context getContextFromFragment() {
//         return getContext();
//     }
// 
//     @Override
//     public void onDestroy() {
//         super.onDestroy();
//         mPresenter.detachView();
//     }
// 
// }
// 
// Path: app/src/main/java/com/tryouts/courierapplication/interactors/PricelistInteractor.java
// public class PricelistInteractor {
// 
//     private Context mContext;
// 
//     public PricelistInteractor(PricelistPresenter presenter) {
//         PricelistPresenter mPresenter = presenter;
//     }
// 
//     /**
//      * Prepares List with priceitems in correct order.
//      * Dummy list within PriceList.class.
//      * @return
//      */
//     private List<PriceItem> preparePrices() {
//         PriceList priceList = PriceList.get();
//         return priceList.getPrices();
//     }
// 
//     public void onPrepareRecyclerView(RecyclerView recyclerView) {
//         recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
//         recyclerView.setAdapter(prepareAdapter());
//     }
// 
//     /**
//      * Called from this interactor.
//      * Creates and returns an adapter (calls getPriceItemList to prepare data)
//      * @return
//      */
//     private BasePriceAdapterByGenre prepareAdapter() {
//         return new BasePriceAdapterByGenre(getPriceItemList());
//     }
// 
//     /**
//      * Called from this presenter.
//      * Retrieves priceitems list from PricelistInteractor.
//      * @return
//      */
//     private List<PriceItem> getPriceItemList() {
//         return preparePrices();
//     }
// 
//     public void setContext(Context context) {
//         this.mContext = context;
//     }
// 
//     private Context getContext() {
//         return mContext;
//     }
// 
// 
// }


import com.tryouts.courierapplication.fragments.PricelistFragment;
import com.tryouts.courierapplication.interactors.PricelistInteractor;
package com.tryouts.courierapplication.presenters;



public class PricelistPresenter {

    private PricelistInteractor mModel;
    private PricelistFragment mView;

    public PricelistPresenter(PricelistFragment pricelistFragment) {
        this.mModel = new PricelistInteractor(this);
// Path: app/src/main/java/com/tryouts/courierapplication/fragments/PricelistFragment.java
// 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);
//         mPresenter.initialize();
//     }
// 
//     public RecyclerView getRecyclerView() {
//         return mRecyclerView;
//     }
// 
//     public Context getContextFromFragment() {
//         return getContext();
//     }
// 
//     @Override
//     public void onDestroy() {
//         super.onDestroy();
//         mPresenter.detachView();
//     }
// 
// }
// 
// Path: app/src/main/java/com/tryouts/courierapplication/interactors/PricelistInteractor.java
// public class PricelistInteractor {
// 
//     private Context mContext;
// 
//     public PricelistInteractor(PricelistPresenter presenter) {
//         PricelistPresenter mPresenter = presenter;
//     }
// 
//     /**
//      * Prepares List with priceitems in correct order.
//      * Dummy list within PriceList.class.
//      * @return
//      */
//     private List<PriceItem> preparePrices() {
//         PriceList priceList = PriceList.get();
//         return priceList.getPrices();
//     }
// 
//     public void onPrepareRecyclerView(RecyclerView recyclerView) {
//         recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
//         recyclerView.setAdapter(prepareAdapter());
//     }
// 
//     /**
//      * Called from this interactor.
//      * Creates and returns an adapter (calls getPriceItemList to prepare data)
//      * @return
//      */
//     private BasePriceAdapterByGenre prepareAdapter() {
//         return new BasePriceAdapterByGenre(getPriceItemList());
//     }
// 
//     /**
//      * Called from this presenter.
//      * Retrieves priceitems list from PricelistInteractor.
//      * @return
//      */
//     private List<PriceItem> getPriceItemList() {
//         return preparePrices();
//     }
// 
//     public void setContext(Context context) {
//         this.mContext = context;
//     }
// 
//     private Context getContext() {
//         return mContext;
//     }
// 
// 
// }


// Path: app/src/main/java/com/tryouts/courierapplication/presenters/PricelistPresenter.java
import com.tryouts.courierapplication.fragments.PricelistFragment;
import com.tryouts.courierapplication.interactors.PricelistInteractor;

package com.tryouts.courierapplication.presenters;



public class PricelistPresenter {

    private PricelistInteractor mModel;
    private PricelistFragment mView;

    public PricelistPresenter(PricelistFragment pricelistFragment) {
        this.mModel = new PricelistInteractor(this);
        this.mView = pricelistFragment;