C# Class Sport.Mobile.Shared.AuthenticationViewModel

Inheritance: BaseViewModel
Afficher le fichier Open project: xamarin/Sport Class Usage Examples

Private Properties

Свойство Type Description
AuthenticateWithAzure Task
GetAllLeaderboards System.Threading.Tasks.Task
GetAthletesProfile Task
RegisterAthlete Task
SetIdentityValues System.Threading.Tasks.Task

Méthodes publiques

Méthode Description
Authenticate ( ) : System.Threading.Tasks.Task

Shows the Google authentication web view so the user can authenticate and gets the user's Google profile from Google API

GetUserProfile ( MobileServiceAuthenticationProvider provider ) : Task
GetUserProfile ( ) : Task

Attempts to get the user profile from Google. Will use the refresh token if the auth token has expired Will set App.CurrentAthlete to the athlete data from Azure

LogOut ( bool clearCookies ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
AuthenticateWithAzure ( ) : Task

Authenticates the athlete against the Azure backend and loads all necessary data to begin the app experience

GetAllLeaderboards ( ) : System.Threading.Tasks.Task

Gets all leaderboards for the system

GetAthletesProfile ( ) : Task

Gets the athlete's profile from the Azure backend

RegisterAthlete ( IUserProfile profile ) : Task

Registers an athlete with the backend and returns the new athlete profile

SetIdentityValues ( MobileServiceUser user ) : System.Threading.Tasks.Task

Method Details

Authenticate() public méthode

Shows the Google authentication web view so the user can authenticate and gets the user's Google profile from Google API
public Authenticate ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

GetUserProfile() public méthode

public GetUserProfile ( MobileServiceAuthenticationProvider provider ) : Task
provider MobileServiceAuthenticationProvider
Résultat Task

GetUserProfile() public méthode

Attempts to get the user profile from Google. Will use the refresh token if the auth token has expired Will set App.CurrentAthlete to the athlete data from Azure
public GetUserProfile ( ) : Task
Résultat Task

LogOut() public méthode

public LogOut ( bool clearCookies ) : System.Threading.Tasks.Task
clearCookies bool
Résultat System.Threading.Tasks.Task