// Path: app/src/main/java/com/tryouts/courierapplication/presenters/ProfilePresenter.java
// public class ProfilePresenter {
// 
//     private ProfileInteractor mModel;
//     private ProfileFragment mView;
// 
//     public ProfilePresenter(ProfileFragment view) {
//         this.mModel = new ProfileInteractor(this);
//         this.mView = view;
//     }
// 
//     /**
//      * Called by fragment instantiation {ProfileFragment}
//      * Sends a request for user data from db based on his UID
//      */
//     public void onUserDetailsRequired() {
//         mView.showProgressDialog();
//         mModel.getUserDataFromDb();
//     }
// 
//     // RETURNING FROM MODEL
// 
//     /**
//      * Receives call from the model when User data is acquired from db
//      */
//     public void onReceivedUserDataFromDb(User user) {
//         showUserDataInViews(user);
//     }
// 
//     /**
//      * Sends user details to the view's textfields.
//      * @param user
//      */
//     private void showUserDataInViews(User user) {
//         mView.setTexts(user.getName(), user.getPhone(), user.getEmail());
//         hideProgressDialog();
//     }
// 
//     private void hideProgressDialog() {
//         mView.hideProgressDialog();
//     }
// 
//     public void detachView() {
//         mView = null;
//     }
// 
// 
// }


import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.tryouts.courierapplication.presenters.ProfilePresenter;
import com.tryouts.courierapplication.R;
package com.tryouts.courierapplication.fragments;


public class ProfileFragment extends Fragment {

    private TextView mName;
    private TextView mPhone;
    private TextView mMail;
    private ProgressDialog mProgressDialog;
// Path: app/src/main/java/com/tryouts/courierapplication/presenters/ProfilePresenter.java
// public class ProfilePresenter {
// 
//     private ProfileInteractor mModel;
//     private ProfileFragment mView;
// 
//     public ProfilePresenter(ProfileFragment view) {
//         this.mModel = new ProfileInteractor(this);
//         this.mView = view;
//     }
// 
//     /**
//      * Called by fragment instantiation {ProfileFragment}
//      * Sends a request for user data from db based on his UID
//      */
//     public void onUserDetailsRequired() {
//         mView.showProgressDialog();
//         mModel.getUserDataFromDb();
//     }
// 
//     // RETURNING FROM MODEL
// 
//     /**
//      * Receives call from the model when User data is acquired from db
//      */
//     public void onReceivedUserDataFromDb(User user) {
//         showUserDataInViews(user);
//     }
// 
//     /**
//      * Sends user details to the view's textfields.
//      * @param user
//      */
//     private void showUserDataInViews(User user) {
//         mView.setTexts(user.getName(), user.getPhone(), user.getEmail());
//         hideProgressDialog();
//     }
// 
//     private void hideProgressDialog() {
//         mView.hideProgressDialog();
//     }
// 
//     public void detachView() {
//         mView = null;
//     }
// 
// 
// }


// Path: app/src/main/java/com/tryouts/courierapplication/fragments/ProfileFragment.java
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.tryouts.courierapplication.presenters.ProfilePresenter;
import com.tryouts.courierapplication.R;

package com.tryouts.courierapplication.fragments;


public class ProfileFragment extends Fragment {

    private TextView mName;
    private TextView mPhone;
    private TextView mMail;
    private ProgressDialog mProgressDialog;
    private ProfilePresenter mPresenter;