C# Class BattlelogMobile.Client.ViewModel.MainViewModel

Inheritance: BaseViewModel
Show file Open project: mikkoviitala/battlelogmobile Class Usage Examples

Public Methods

Method Description
MainViewModel ( ) : System
MainViewModel ( FileCredentialsRepository credentialsRepository ) : System

Private Methods

Method Description
CanExecuteLogInCommand ( ) : bool
ConstructPostData ( string email, string password, SupportedGame game ) : string

Create and encode login POST data

DialogMessageReceived ( DialogMessage message ) : void
LoadCredentials ( ) : void

Load stored credentials from phone

LogIn ( SupportedGame game ) : void
LogInCommandReceived ( ) : void

Connect to battlelog and verify user credentials

NotificationMessageReceived ( NotificationMessage message ) : void
ResetControls ( ) : void
SaveCredentials ( ) : void

Save credentials to phone

TimerTicked ( object sender, EventArgs e ) : void

Cancel login if it's taking too long

Method Details

MainViewModel() public method

public MainViewModel ( ) : System
return System

MainViewModel() public method

public MainViewModel ( FileCredentialsRepository credentialsRepository ) : System
credentialsRepository BattlelogMobile.Core.Repository.FileCredentialsRepository
return System