C# 클래스 Sport.Mobile.Shared.AuthenticationViewModel

상속: BaseViewModel
파일 보기 프로젝트 열기: xamarin/Sport 1 사용 예제들

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