Exemple #1
0
        public SearchPresenter(BaseActivity activity, Bundle extras)
        {
            this.activity = activity;
            this.view     = new SearchView(activity, this);
            UserTripDataManager dataManager = new UserTripDataManager();

            searchIntent = new SearchIntent(extras);
            SearchAndDisplayResults(searchIntent);
        }
        public TripDetailsPresenter(BaseActivity activity, Trip trip, Bundle extras)
        {
            var cancelable = isCancelable(extras);

            this.activity = activity;
            this.trip     = trip;

            this.view = new TripDetailsView(activity, this, cancelable);
            this.view.DisplayTrip(trip);
        }
        public ItineraryDetailsPresenter(BaseActivity activity, Itinerary itinerary, Bundle extras)
        {
            this.activity  = activity;
            this.itinerary = itinerary;
            this.view      = new ItineraryDetailsView(activity, this);
            this.view.DisplayItinerary(this.itinerary);

            this.mAlarmManager = (AlarmManager)activity.GetSystemService(Context.AlarmService);


            try{
                startLocation = extras.GetString(ItineraryDetailsActivity.KEY_startLocation);
                endLocation   = extras.GetString(ItineraryDetailsActivity.KEY_endLocation);
                isTripValid   = true;
            }catch (Exception e)
            {
                Console.WriteLine(e);
                isTripValid = false;
            }
        }
Exemple #4
0
 public LoginPresenter(BaseActivity activity)
 {
     this.activity = activity;
     this.view     = new LoginView(activity, this);
 }
Exemple #5
0
 public RegisterPresenter(BaseActivity activity)
 {
     this.activity = activity;
     this.view     = new RegisterView(activity, this);
 }