C# Класс Sport.Mobile.Shared.AuthenticationViewModel

Наследование: BaseViewModel
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AuthenticateWithAzure Task
GetAllLeaderboards System.Threading.Tasks.Task
GetAthletesProfile Task
RegisterAthlete Task
SetIdentityValues System.Threading.Tasks.Task

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Authenticate() публичный Метод

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
Результат System.Threading.Tasks.Task

GetUserProfile() публичный Метод

public GetUserProfile ( MobileServiceAuthenticationProvider provider ) : Task
provider MobileServiceAuthenticationProvider
Результат Task

GetUserProfile() публичный Метод

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
Результат Task

LogOut() публичный Метод

public LogOut ( bool clearCookies ) : System.Threading.Tasks.Task
clearCookies bool
Результат System.Threading.Tasks.Task