C# Class ParkenDD.ViewModels.MainViewModel

Inheritance: ViewModelBase
Datei anzeigen Open project: sibbl/ParkenDD Class Usage Examples

Public Methods

Method Description
Initialize ( bool loadState ) : void
MainViewModel ( IParkenDdClient client, VoiceCommandService voiceCommandService, JumpListService jumpList, ParkingLotListFilterService filterService, SettingsService settings, StorageService storage, GeolocationService geo, TrackingService tracking, ExceptionService exceptionService ) : System
RefreshCityDetails ( ) : void
RefreshCityDetails ( bool replaceData ) : void
Resume ( ) : void
TrySelectCityById ( string id ) : Task
TrySelectParkingLotById ( string cityId, string parkingLotId ) : Task

Private Methods

Method Description
CityChosen ( MetaDataCityRow city ) : void
FindCityById ( MetaData metaData, string id ) : MetaDataCityRow
FindCityByName ( MetaData metaData, string name ) : MetaDataCityRow
FindParkingLotById ( City city, string id ) : ParkingLot
GetCity ( string cityId, bool forceServerRefresh = false, MetaDataCityRow cityMetaData = null ) : Task
GetMetaData ( bool forceServerRefresh = false ) : Task
GetOfflineCityData ( string cityId ) : Task
GetOfflineMetaData ( ) : Task
InitMetaData ( ) : System.Threading.Tasks.Task
LoadCity ( string cityId, bool forceRefresh = false ) : Task
LoadCityAndSelectCity ( ) : void
LoadLastState ( string selectedCityId ) : Task
NavigateToParkingLot ( ParkingLot lot ) : void
SearchResultChosen ( AutoSuggestBoxQuerySubmittedEventArgs args ) : void
SearchTextChanged ( AutoSuggestBoxTextChangedEventArgs args ) : void
SetLoadingCity ( bool value = true ) : void
SetLoadingMetaData ( bool value = true ) : void
SetParkingLotFilterToAlphabetically ( ) : void
SetParkingLotFilterToAvailability ( ) : void
SetParkingLotFilterToDistance ( ) : void
ShowInfoDialog ( ) : void
TryGetUserPosition ( ) : void
TryLoadOnlineCityData ( ) : void
TryLoadOnlineMetaData ( ) : void
UpdateInternetAvailability ( ) : void
UpdateMapBounds ( ) : void
UpdateParkingLotListFilter ( ) : void
UpdateServiceData ( ) : void

Method Details

Initialize() public method

public Initialize ( bool loadState ) : void
loadState bool
return void

MainViewModel() public method

public MainViewModel ( IParkenDdClient client, VoiceCommandService voiceCommandService, JumpListService jumpList, ParkingLotListFilterService filterService, SettingsService settings, StorageService storage, GeolocationService geo, TrackingService tracking, ExceptionService exceptionService ) : System
client IParkenDdClient
voiceCommandService VoiceCommandService
jumpList ParkenDD.Services.JumpListService
filterService ParkenDD.Services.ParkingLotListFilterService
settings SettingsService
storage StorageService
geo ParkenDD.Services.GeolocationService
tracking ParkenDD.Services.TrackingService
exceptionService ParkenDD.Services.ExceptionService
return System

RefreshCityDetails() public method

public RefreshCityDetails ( ) : void
return void

RefreshCityDetails() public method

public RefreshCityDetails ( bool replaceData ) : void
replaceData bool
return void

Resume() public method

public Resume ( ) : void
return void

TrySelectCityById() public method

public TrySelectCityById ( string id ) : Task
id string
return Task

TrySelectParkingLotById() public method

public TrySelectParkingLotById ( string cityId, string parkingLotId ) : Task
cityId string
parkingLotId string
return Task