public RidePageViewModel() { _lyftRidesApi = new LyftRidesApi(); PickupPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); LocationPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); DestinationPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); CenterPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); CarModel = "Car model"; LicensePlate = "XXXXXXX"; DriverName = "Driver name"; DriverRating = "Rating"; StatusText = "CONTACTING NEARBY DRIVERS"; ShowProfilePic = Visibility.Collapsed; RideState = LyftRideState.Pending; _driverPhoneNumber = ""; _ETAcount = 0; ShowCarDetails = false; Spinner = true; Driver = new ObservableCollection <MapLyftIcon>(); _settings = SettingsService.Instance; ProfileImageSrc = new Uri("ms-appx://29Lifts/Assets/image.jpg"); ProfileImageUserSrc = _settings.ProfileImageSrc; RideDetailsTimer = new DispatcherTimer(); RideDetailsTimer.Interval = TimeSpan.FromMilliseconds(10000.0); RideDetailsTimer.Tick += RideDetailsTimerUpdate; RideDetailsTimer.Start(); }
public OrderPageViewModel() { _lyftPublicApi = new LyftPublicApi(); // Seattle, WA as default PickupPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); LocationPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); CenterPoint = new Geopoint(new BasicGeoposition() { Latitude = 32.7555, Longitude = -97.3308 }); PrimeTime = string.Empty; EstimatedPrice = "Price Estimate"; ShowDetails = false; ShowSearch = false; DestinationText = "Add destination"; ShowDestination = false; DestinationChosen += DestinationChosenTriggered; //ShowLocation += UpdateMapForGPSLocation; PrimeTime = "Prime Time"; IsPrimeTime = false; PrimeTimeRate = string.Empty; _lyftUserApi = new LyftRidesApi(); ProfilePictureSrc = _settings.ProfileImageSrc; _etaUpdateTimer = new DispatcherTimer(); _etaUpdateTimer.Interval = TimeSpan.FromMilliseconds(5000); _etaUpdateTimer.Tick += _etaUpdateTimer_Tick; //Suggestions.Add("john"); //Suggestions.Add("johnny"); //Suggestions.Add("jonni"); }