Example #1
0
        private AppCommon(string googleApiKeyNative, string googleApiKeyWeb, ILocationProvider locationProvider)
        {
            Inst               = this;
            IsLoggedIn         = false;
            GoogleApiKeyNative = googleApiKeyNative;
            GoogleApiKeyWeb    = googleApiKeyWeb;

            Log         = new Logger();
            IsPassenger = new DynProp <bool> (true);
            LoadAppData();
            PlacesProvider       = new PlacesProvider();
            DirectionsProvider   = new DirectionsProvider();
            LocationProvider     = locationProvider;
            NearestPointProvider = new NearestPointProvider();

            IsPassenger.Value = AppData.IsLastUserPassenger;
        }
Example #2
0
		private AppCommon(string googleApiKeyNative, string googleApiKeyWeb, ILocationProvider locationProvider)
		{
			Inst = this;
			IsLoggedIn = false;
			GoogleApiKeyNative = googleApiKeyNative;
			GoogleApiKeyWeb = googleApiKeyWeb;

			Log = new Logger ();
			IsPassenger = new DynProp<bool> (true); 
			LoadAppData ();
			PlacesProvider = new PlacesProvider ();
			DirectionsProvider = new DirectionsProvider ();
			LocationProvider = locationProvider;
			NearestPointProvider = new NearestPointProvider ();

			IsPassenger.Value = AppData.IsLastUserPassenger;
		}